From 5c9ad9c92a806646d8aa6be931bfb6a901c62a2e Mon Sep 17 00:00:00 2001 From: thilo Date: Sat, 25 Nov 2006 10:54:41 +0000 Subject: Fix vsprintf bug, thanks to ensiform. git-svn-id: svn://svn.icculus.org/quake3/trunk@980 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/game/bg_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/game') diff --git a/code/game/bg_lib.c b/code/game/bg_lib.c index 787a9ea..997b9c9 100644 --- a/code/game/bg_lib.c +++ b/code/game/bg_lib.c @@ -1067,7 +1067,7 @@ void AddInt( char **buf_p, int val, int width, int flags ) { } if( flags & LADJUST ) { - while ( width-- ) { + while ( width-- > 0) { *buf++ = ( flags & ZEROPAD ) ? '0' : ' '; } } -- cgit v1.2.3