aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-20 07:08:42 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-20 07:08:42 +0000
commit490f67cd3f96b6a7a0e1120bc68ecf9e8a846a81 (patch)
tree43575175dd9f8e4f68539b08ef44de5efd6e6efc /code
parentbcc0a199976512a81e9316efc20ba95e6ff64963 (diff)
downloadioquake3-aero-490f67cd3f96b6a7a0e1120bc68ecf9e8a846a81.tar.gz
ioquake3-aero-490f67cd3f96b6a7a0e1120bc68ecf9e8a846a81.zip
pass the correct size to Q_vsnprintf (Ian Lindsay)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1390 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/game/g_main.c2
1 files changed, 1 insertions, 1 deletions
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 ) {