pass the correct size to Q_vsnprintf (Ian Lindsay)

This commit is contained in:
Ludwig Nussel 2008-06-20 07:08:42 +00:00
parent 5513fa3d75
commit 21a208cb82
1 changed files with 1 additions and 1 deletions

View File

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