From 490f67cd3f96b6a7a0e1120bc68ecf9e8a846a81 Mon Sep 17 00:00:00 2001 From: ludwig Date: Fri, 20 Jun 2008 07:08:42 +0000 Subject: pass the correct size to Q_vsnprintf (Ian Lindsay) git-svn-id: svn://svn.icculus.org/quake3/trunk@1390 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/game/g_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code') diff --git a/code/game/g_main.c b/code/game/g_main.c index 91cb624..cd176d3 100644 --- a/code/game/g_main.c +++ b/code/game/g_main.c @@ -1092,7 +1092,7 @@ void QDECL G_LogPrintf( const char *fmt, ... ) { Com_sprintf( string, sizeof(string), "%3i:%i%i ", min, tens, sec ); va_start( argptr, fmt ); - Q_vsnprintf(string + 7, sizeof(string - 7), fmt, argptr); + Q_vsnprintf(string + 7, sizeof(string) - 7, fmt, argptr); va_end( argptr ); if ( g_dedicated.integer ) { -- cgit v1.2.3