X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfwprintf.c;h=f9f1ecfd540908cf8a79792fbcff337f2debc9ed;hb=8c316e9e49d37ad92c2e7493e16166a2afca419f;hp=ebdff00101cfb000309c2aee8f0de3649c271b58;hpb=d42269d7c85308abdbf8cee38b1a1097249eb38b;p=musl diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c index ebdff001..f9f1ecfd 100644 --- a/src/stdio/vfwprintf.c +++ b/src/stdio/vfwprintf.c @@ -288,26 +288,29 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_ z = wmemchr(a, 0, p); if (z) p=z-a; if (w0; bs+=i, l++); if (i<0) return -1; p=l; if (wmode |= f->mode+1; + fwide(f, 1); olderr = f->flags & F_ERR; f->flags &= ~F_ERR; ret = wprintf_core(f, fmt, &ap2, nl_arg, nl_type);