summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2007-08-09 13:54:12 +0000
committerM. Kristall <mkpdev@gmail.com>2007-08-09 13:54:12 +0000
commit9f99a4c9135d9ccd476a03137481e643835a4453 (patch)
treed510ac2a64f5530ddefbf4c04104f190992add8b /src
parent4b4df5ccfa10acbcd984f7b9bfb65cb9f3ef3fec (diff)
* (bug 3301) fix vsprintf bug
Diffstat (limited to 'src')
-rw-r--r--src/game/bg_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/bg_lib.c b/src/game/bg_lib.c
index 9b4f390e..54d1ed59 100644
--- a/src/game/bg_lib.c
+++ b/src/game/bg_lib.c
@@ -1726,7 +1726,7 @@ void AddInt( char **buf_p, int val, int width, int flags )
if( flags & LADJUST )
{
- while( width-- )
+ while( width-- > 0 )
*buf++ = ( flags & ZEROPAD ) ? '0' : ' ';
}