From 1161e866f7a074c7c89a0447ee3712e6944513a3 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Sat, 3 Oct 2009 11:48:04 +0000 Subject: * (bug 3631) Macro safety for MIN() and MAX() (Ben Millwood) * (bug 3645) Lag correction field in server info menus is always empty (Ben Millwood) * (bug 3653) stack corruption in G_SendGameStat() (/dev/humancontroller) * (bug 3662) Players who fall of the edge of the world can block the spawn queue (/dev/humancontroller) * Remove unused argument to G_ClientNumberFromString() * Remove unused variables in G_admin_setlevel() * Remove a number of superfluous va()s * Shut up erroneous warnings about uninitialized variables --- src/game/g_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/g_main.c') diff --git a/src/game/g_main.c b/src/game/g_main.c index a3123e17..bb79e173 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1704,10 +1704,10 @@ void G_SendGameStat( team_t team ) entryLength = strlen( entry ); - if( dataLength + entryLength > MAX_STRING_CHARS ) + if( dataLength + entryLength >= BIG_INFO_STRING ) break; - Q_strncpyz( data + dataLength, entry, BIG_INFO_STRING ); + strcpy( data + dataLength, entry ); dataLength += entryLength; } -- cgit