diff options
author | pommicket <pommicket@gmail.com> | 2023-08-26 00:05:13 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-26 00:06:06 -0400 |
commit | 7497aa73e5590a438d17eb4642e4aaba4fe66863 (patch) | |
tree | 77a44184c9a3404860692947f07f187abc463865 /ds.h | |
parent | 1c783f9cf5387f658368f21ebe15e5e8008c5fe2 (diff) |
fix bad write in ds.h
Diffstat (limited to 'ds.h')
-rw-r--r-- | ds.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -247,7 +247,7 @@ static void *arr_insert_multiple_(void *arr, size_t member_size, size_t index, s ArrHeader *hdr = arr_hdr_(arr); memmove((char *)arr + (index + count) * member_size, (char *)arr + index * member_size, - arr_len(arr) * member_size); + (arr_len(arr) - index) * member_size); memset((char *)arr + index * member_size, 0, count * member_size); hdr->len += (u32)count; return arr; |