public: crtlib.c: reduce memory usage.

This commit is contained in:
Andrey Akhmichin 2020-02-12 14:40:19 +05:00
parent 49445f0663
commit 9a0da3cd4f
1 changed files with 2 additions and 2 deletions

View File

@ -710,11 +710,11 @@ of all text functions.
char *va( const char *format, ... )
{
va_list argptr;
static char string[256][1024], *s;
static char string[16][1024], *s;
static int stringindex = 0;
s = string[stringindex];
stringindex = (stringindex + 1) & 255;
stringindex = (stringindex + 1) & 15;
va_start( argptr, format );
Q_vsnprintf( s, sizeof( string[0] ), format, argptr );
va_end( argptr );