Browse Source

public: make va() buffer size public

pull/2/head
Alibek Omarov 2 years ago
parent
commit
3765686077
  1. 1
      common/xash3d_types.h
  2. 2
      public/crtlib.c

1
common/xash3d_types.h

@ -50,6 +50,7 @@ typedef uint64_t longtime_t; @@ -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

2
public/crtlib.c

@ -631,7 +631,7 @@ of all text functions. @@ -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];

Loading…
Cancel
Save