diff options
-rw-r--r-- | arr.c | 2 | ||||
-rw-r--r-- | main.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -151,7 +151,7 @@ static void arr_set_len_(void **arr, size_t member_size, size_t n) { ArrHeader *hdr = arr_hdr_(*arr); if (n > hdr->len) { // zero new elements - memset((char *)hdr->data + hdr->len, 0, (n - hdr->len) * member_size); + memset((char *)hdr->data + hdr->len * member_size, 0, (n - hdr->len) * member_size); } hdr->len = (u32)n; } @@ -1,7 +1,11 @@ /* FUTURE FEATURES: +- regenerate tags for completion too if there are no results - config variables +- bind key to multiple commands - plugins? +- keyboard macros + - ctrl+9/0 to inc/dec number would be useful here */ #include "base.h" |