Fix vsprintf bug, thanks to ensiform.

This commit is contained in:
Thilo Schulz 2006-11-25 10:54:41 +00:00
parent d23e7a1521
commit 5a195bdd7b

View file

@ -1067,7 +1067,7 @@ void AddInt( char **buf_p, int val, int width, int flags ) {
} }
if( flags & LADJUST ) { if( flags & LADJUST ) {
while ( width-- ) { while ( width-- > 0) {
*buf++ = ( flags & ZEROPAD ) ? '0' : ' '; *buf++ = ( flags & ZEROPAD ) ? '0' : ' ';
} }
} }