Skip to content

Commit

Permalink
Fix vsprintf bug, thanks to ensiform.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed Nov 25, 2006
1 parent d23e7a1 commit 5a195bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/bg_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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' : ' ';
}
}
Expand Down

0 comments on commit 5a195bd

Please sign in to comment.