public: make va() buffer size public

This commit is contained in:
Alibek Omarov 2023-03-11 05:20:34 +03:00
parent 9fffd7a270
commit 3765686077
2 changed files with 2 additions and 1 deletions

View File

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

View File

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