aboutsummaryrefslogtreecommitdiffstats
path: root/code/game
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-11-25 10:54:41 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-11-25 10:54:41 +0000
commit5c9ad9c92a806646d8aa6be931bfb6a901c62a2e (patch)
tree546dc906cab53026a2ee1367ab0013461e43ae85 /code/game
parente193002cd918847485deec24f2f17f1585000d99 (diff)
downloadioquake3-aero-5c9ad9c92a806646d8aa6be931bfb6a901c62a2e.tar.gz
ioquake3-aero-5c9ad9c92a806646d8aa6be931bfb6a901c62a2e.zip
Fix vsprintf bug, thanks to ensiform.
git-svn-id: svn://svn.icculus.org/quake3/trunk@980 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/game')
-rw-r--r--code/game/bg_lib.c2
1 files changed, 1 insertions, 1 deletions
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' : ' ';
}
}