mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
Fix vsprintf bug, thanks to ensiform.
This commit is contained in:
parent
d23e7a1521
commit
5a195bdd7b
1 changed files with 1 additions and 1 deletions
|
@ -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' : ' ';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue