summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mailbox/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailbox/list.c b/mailbox/list.c
index bf36d5511..981e8f691 100644
--- a/mailbox/list.c
+++ b/mailbox/list.c
@@ -376,7 +376,7 @@ list_to_array (list_t list, void **array, size_t count, size_t *pcount)
for (i = 0, current = list->head.next;
i < total && current != &(list->head); current = current->next)
- array[i] = current->item;
+ array[i++] = current->item;
}
if (pcount)
*pcount = total;

Return to:

Send suggestions and report system problems to the System administrator.