Don't use the stack for meta.ini parsing

This commit is contained in:
Maschell 2022-01-26 14:32:30 +01:00
parent 136da033f4
commit 1365eff9fc
1 changed files with 2 additions and 2 deletions

View File

@ -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