diff --git a/include/QF/darray.h b/include/QF/darray.h index 0ea0a26d6..61500256a 100644 --- a/include/QF/darray.h +++ b/include/QF/darray.h @@ -253,7 +253,7 @@ } \ DARRAY_RESIZE (ar, ar->size + sp); \ memmove (&ar->a[po + sp], &ar->a[po], \ - (ar->size - po) * sizeof (*ar->a)); \ + (ar->size - po - sp) * sizeof (*ar->a)); \ &ar->a[po]; \ })