diff --git a/common/xash3d_types.h b/common/xash3d_types.h index adca2246..3cd1cfec 100644 --- a/common/xash3d_types.h +++ b/common/xash3d_types.h @@ -50,6 +50,7 @@ typedef uint64_t longtime_t; #define MAX_SERVERINFO_STRING 512 // server handles too many settings. expand to 1024? #define MAX_LOCALINFO_STRING 32768 // localinfo used on server and not sended to the clients #define MAX_SYSPATH 1024 // system filepath +#define MAX_VA_STRING 1024 // string length returned by va() #define MAX_PRINT_MSG 8192 // how many symbols can handle single call of Con_Printf or Con_DPrintf #define MAX_TOKEN 2048 // parse token length #define MAX_MODS 512 // environment games that engine can keep visible diff --git a/public/crtlib.c b/public/crtlib.c index a0867558..2a67f476 100644 --- a/public/crtlib.c +++ b/public/crtlib.c @@ -631,7 +631,7 @@ of all text functions. char *va( const char *format, ... ) { va_list argptr; - static char string[16][1024], *s; + static char string[16][MAX_VA_STRING], *s; static int stringindex = 0; s = string[stringindex];