diff options
author | M. Kristall <mkpdev@gmail.com> | 2007-08-09 13:54:12 +0000 |
---|---|---|
committer | M. Kristall <mkpdev@gmail.com> | 2007-08-09 13:54:12 +0000 |
commit | 9f99a4c9135d9ccd476a03137481e643835a4453 (patch) | |
tree | d510ac2a64f5530ddefbf4c04104f190992add8b /src | |
parent | 4b4df5ccfa10acbcd984f7b9bfb65cb9f3ef3fec (diff) |
* (bug 3301) fix vsprintf bug
Diffstat (limited to 'src')
-rw-r--r-- | src/game/bg_lib.c | 2 |
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' : ' '; } |