summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2026-01-30 13:09:10 +0100
committerJean Boussier <jean.boussier@gmail.com>2026-01-30 15:24:48 +0100
commit9be01bc70dca0e727fe1f518ebae1f6f72405b84 (patch)
treef9a3d7b3e27b2b6ea8fa36492583bd8ab8d81eec /parse.y
parent3c100019a4a1b0ef66db76ec3b14f63eac51dd4d (diff)
gc.c: also verify sized_xrealloc old size
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 03dd1c6f92..7ca1197b37 100644
--- a/parse.y
+++ b/parse.y
@@ -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 { \