X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfwprintf.c;h=a42ba195f8b06c6e1b17feb8d46816773344408d;hb=ef2f595f7489a79b328766e3f8c2c899c8d23fd1;hp=42ce304fb053e5fc2a6c466a236bb7dbc1459ab9;hpb=c35bb6645f32bc684dc3da99d4d71c4ead2d4717;p=musl diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c index 42ce304f..a42ba195 100644 --- a/src/stdio/vfwprintf.c +++ b/src/stdio/vfwprintf.c @@ -292,7 +292,7 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_ case 's': bs = arg.p; if (p<0) p = INT_MAX; - for (l=0; l

0; bs+=i, l++); + for (i=l=0; l

0; bs+=i, l++); if (i<0) return -1; p=l; if (w