23 lines
807 B
Plaintext
23 lines
807 B
Plaintext
diff --git a/imap/mailbox.c b/imap/mailbox.c
|
|
index e7498c0..8b6f406 100644
|
|
--- a/imap/mailbox.c
|
|
+++ b/imap/mailbox.c
|
|
@@ -5425,7 +5425,7 @@ static int find_files(struct mailbox *mailbox, struct found_uids *files,
|
|
}
|
|
|
|
/* make sure UIDs are sorted for comparison */
|
|
- qsort(files->found, files->nused, sizeof(unsigned long), sort_found);
|
|
+ qsort(files->found, files->nused, sizeof(files->found[0]), sort_found);
|
|
|
|
strarray_fini(&paths);
|
|
|
|
@@ -6206,7 +6206,7 @@ static int find_annots(struct mailbox *mailbox, struct found_uids *annots)
|
|
if (r) return r;
|
|
|
|
/* make sure UIDs are sorted for comparison */
|
|
- qsort(annots->found, annots->nused, sizeof(unsigned long), sort_found);
|
|
+ qsort(annots->found, annots->nused, sizeof(annots->found[0]), sort_found);
|
|
|
|
return 0;
|
|
}
|