Skip %c char if input zero

Removed_REF_marker
DiSlord 5 years ago committed by erikkaashoek
parent ac33a335e3
commit 90c50dc776

@ -350,7 +350,8 @@ int chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) {
switch (c) { switch (c) {
case 'c': case 'c':
state&=~PAD_ZERO; state&=~PAD_ZERO;
*p++ = va_arg(ap, int); c = va_arg(ap, int);
if (c) *p++ = c;
break; break;
case 's': case 's':
state&=~PAD_ZERO; state&=~PAD_ZERO;

Loading…
Cancel
Save

Powered by TurnKey Linux.