# HG changeset patch # User Mike Becker # Date 1668962846 -3600 # Node ID 254cc61c71a0c7e30f37bd1f54e0bc2c563c3b02 # Parent a4c4a50c067afc185fb7a4352e8d7f76d0ac68a5 #219: fix off-by-one bug in cx_arl_remove() diff -r a4c4a50c067a -r 254cc61c71a0 src/array_list.c --- a/src/array_list.c Sun Nov 20 17:22:37 2022 +0100 +++ b/src/array_list.c Sun Nov 20 17:47:26 2022 +0100 @@ -266,7 +266,7 @@ index, ((char *) arl->data) + (index + 1) * list->itemsize, list->itemsize, - list->size - index, + list->size - index - 1, &arl->reallocator ); if (result == 0) {