summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--ds.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2267ba7..0ecd0c1 100644
--- a/README.md
+++ b/README.md
@@ -323,6 +323,7 @@ Then, open windows\_installer\\ted\\ted.sln, and build.
<tr><td>2.4.2</td> <td>Fix font absolute paths</td> <td>2023 Jul 21</td></tr>
<tr><td>2.4.3</td> <td>Some font related fixes</td> <td>2023 Aug 1</td></tr>
<tr><td>2.5</td> <td>Rename symbol, document links, bug fixes</td> <td>2023 Aug 15</td></tr>
+<tr><td>2.5.1</td> <td>Bug fixes</td> <td>2023 Aug 26</td></tr>
</table>
## License
diff --git a/ds.h b/ds.h
index 757c6f9..a5033f7 100644
--- a/ds.h
+++ b/ds.h
@@ -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;