Closed casouri closed 6 years ago
I don't have an OSX dev environment, please check that this patch fixes the issue for you:
diff --git a/notmuchfs.c b/notmuchfs.c
index 7d06a57..b629b25 100644
--- a/notmuchfs.c
+++ b/notmuchfs.c
@@ -923,7 +923,7 @@ static int notmuchfs_read (const char *path,
assert(p_open != NULL);
if (offset < MAX_XLABEL_LENGTH) {
- size_t bytes_to_copy = MIN(MAX_XLABEL_LENGTH - offset, size);
+ size_t bytes_to_copy = MIN((size_t)(MAX_XLABEL_LENGTH - offset), size);
memcpy(buf, p_open->x_label + offset, bytes_to_copy);
buf += bytes_to_copy;
offset_adj = offset + bytes_to_copy;
It works, thank you! 😄
When I try to compile wiht
make
:My OS:
And I have osxfuse installed.