diff options
| -rw-r--r-- | src/stdio/vfprintf.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 33019ff1..497c5e19 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -588,6 +588,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,  			}  			p = MAX(p, z-a + !arg.i);  			break; +		narrow_c:  		case 'c':  			*(a=z-(p=1))=arg.i;  			fl &= ~ZERO_PAD; @@ -602,6 +603,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,  			fl &= ~ZERO_PAD;  			break;  		case 'C': +			if (!arg.i) goto narrow_c;  			wc[0] = arg.i;  			wc[1] = 0;  			arg.p = wc; | 
