[quake3-commits] r1973 - trunk/code/game

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue May 10 12:26:11 EDT 2011


Author: thilo
Date: 2011-05-10 12:26:11 -0400 (Tue, 10 May 2011)
New Revision: 1973

Modified:
   trunk/code/game/g_team.c
Log:
Fix one byte overflow


Modified: trunk/code/game/g_team.c
===================================================================
--- trunk/code/game/g_team.c	2011-05-10 11:11:37 UTC (rev 1972)
+++ trunk/code/game/g_team.c	2011-05-10 16:26:11 UTC (rev 1973)
@@ -108,7 +108,7 @@
 	char		*p;
 	
 	va_start (argptr,fmt);
-	if (Q_vsnprintf (msg, sizeof(msg), fmt, argptr) > sizeof(msg)) {
+	if (Q_vsnprintf (msg, sizeof(msg), fmt, argptr) >= sizeof(msg)) {
 		G_Error ( "PrintMsg overrun" );
 	}
 	va_end (argptr);



More information about the quake3-commits mailing list