Sun, 20 Nov 2022 17:47:26 +0100
#219: fix off-by-one bug in cx_arl_remove()
src/array_list.c | file | annotate | diff | comparison | revisions |
1.1 --- a/src/array_list.c Sun Nov 20 17:22:37 2022 +0100 1.2 +++ b/src/array_list.c Sun Nov 20 17:47:26 2022 +0100 1.3 @@ -266,7 +266,7 @@ 1.4 index, 1.5 ((char *) arl->data) + (index + 1) * list->itemsize, 1.6 list->itemsize, 1.7 - list->size - index, 1.8 + list->size - index - 1, 1.9 &arl->reallocator 1.10 ); 1.11 if (result == 0) {