diff options
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index 7a0151f515..bc1913cb0d 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -934,7 +934,7 @@ GPtrArray *summary_get_message_info (CamelFolder *folder, int first, int count) CamelMboxFolder *mbox_folder = (CamelMboxFolder *)folder; maxcount = camel_mbox_summary_message_count(mbox_folder->summary); - maxcount = MAX(count, maxcount); + maxcount = MIN(count, maxcount); for (i=first;i<maxcount;i++) g_ptr_array_add(array, g_ptr_array_index(mbox_folder->summary->messages, i)); |