diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index d2d91d743..e19093678 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -835,7 +835,7 @@ static int dprintf_formatf( while(width-- > 0) OUTCHAR(' '); - while((len-- > 0) && *str) + for(; len && *str; len--) OUTCHAR(*str++); if(p->flags&FLAGS_LEFT) while(width-- > 0) |