summaryrefslogtreecommitdiff
path: root/src/game/bg_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/bg_lib.c')
-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' : ' ';
}