Unverified Commit e4f2a5bc authored by Tim Rühsen's avatar Tim Rühsen Committed by Daniel Stenberg
Browse files

mprintf: avoid unsigned integer overflow warning

The overflow has no real world impact.
Just avoid it for "best practice".

Code change suggested by "The Infinnovation Team" and Daniel Stenberg.
Closes #3184
parent 2c5ec339
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)