From 9a0da3cd4fe360687e1a71a2b8d81f6b37fb6c01 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Wed, 12 Feb 2020 14:40:19 +0500 Subject: [PATCH] public: crtlib.c: reduce memory usage. --- public/crtlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/crtlib.c b/public/crtlib.c index e74febb5..9db0a409 100644 --- a/public/crtlib.c +++ b/public/crtlib.c @@ -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 );