diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2026-01-30 13:09:10 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2026-01-30 15:24:48 +0100 |
| commit | 9be01bc70dca0e727fe1f518ebae1f6f72405b84 (patch) | |
| tree | f9a3d7b3e27b2b6ea8fa36492583bd8ab8d81eec /parse.y | |
| parent | 3c100019a4a1b0ef66db76ec3b14f63eac51dd4d (diff) | |
gc.c: also verify sized_xrealloc old size
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1995,7 +1995,7 @@ parser_memhash(const void *ptr, long len) #define STRING_TERM_LEN(str) (1) #define STRING_TERM_FILL(str) (str->ptr[str->len] = '\0') #define PARSER_STRING_RESIZE_CAPA_TERM(p,str,capacity,termlen) do {\ - SIZED_REALLOC_N(str->ptr, char, (size_t)total + termlen, STRING_SIZE(str)); \ + REALLOC_N(str->ptr, char, (size_t)total + termlen); \ str->len = total; \ } while (0) #define STRING_SET_LEN(str, n) do { \ |
