diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-11 07:45:22 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-11 07:45:22 +0000 |
commit | a5c2c63a626be82bcec512b4d945af4fbcf29c19 (patch) | |
tree | 23ebe85b2ac43e8881c43d0870eda29e110b1beb | |
parent | c99270230f975a50157a2dc0ef5847f4b1ec08e3 (diff) | |
download | mailutils-a5c2c63a626be82bcec512b4d945af4fbcf29c19.tar.gz mailutils-a5c2c63a626be82bcec512b4d945af4fbcf29c19.tar.bz2 |
(list_to_array): Bugfix. The counter was not incremented.
-rw-r--r-- | mailbox/list.c | 2 |
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; |