From a5c2c63a626be82bcec512b4d945af4fbcf29c19 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 11 Aug 2005 07:45:22 +0000 Subject: (list_to_array): Bugfix. The counter was not incremented. --- mailbox/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1