From 1365eff9fce6d13c099b796cb7ff3847091c90d1 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 26 Jan 2022 14:32:30 +0100 Subject: [PATCH] Don't use the stack for meta.ini parsing --- src/utils/ini.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/ini.h b/src/utils/ini.h index 7b1f03b..79a5fae 100644 --- a/src/utils/ini.h +++ b/src/utils/ini.h @@ -96,7 +96,7 @@ int ini_parse_string(const char* string, ini_handler handler, void* user); /* Nonzero to use stack for line buffer, zero to use heap (malloc/free). */ #ifndef INI_USE_STACK -#define INI_USE_STACK 1 +#define INI_USE_STACK 0 #endif /* Maximum line length for any line in INI file (stack or heap). Note that @@ -109,7 +109,7 @@ int ini_parse_string(const char* string, ini_handler handler, void* user); fixed-size buffer of INI_MAX_LINE bytes. Only applies if INI_USE_STACK is zero. */ #ifndef INI_ALLOW_REALLOC -#define INI_ALLOW_REALLOC 0 +#define INI_ALLOW_REALLOC 1 #endif /* Initial size in bytes for heap line buffer. Only applies if INI_USE_STACK