r980 - trunk/code/game

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Nov 25 05:54:43 EST 2006


Author: thilo
Date: 2006-11-25 05:54:41 -0500 (Sat, 25 Nov 2006)
New Revision: 980

Modified:
   trunk/code/game/bg_lib.c
Log:
Fix vsprintf bug, thanks to ensiform.


Modified: trunk/code/game/bg_lib.c
===================================================================
--- trunk/code/game/bg_lib.c	2006-11-23 11:10:30 UTC (rev 979)
+++ trunk/code/game/bg_lib.c	2006-11-25 10:54:41 UTC (rev 980)
@@ -1067,7 +1067,7 @@
 	}
 
 	if( flags & LADJUST ) {
-		while ( width-- ) {
+		while ( width-- > 0) {
 			*buf++ = ( flags & ZEROPAD ) ? '0' : ' ';
 		}
 	}




More information about the quake3-commits mailing list