Commit a5c2c63a a5c2c63a626be82bcec512b4d945af4fbcf29c19 by Sergey Poznyakoff

(list_to_array): Bugfix. The counter was not incremented.

1 parent c9927023
......@@ -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;
......