X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfwprintf.c;h=62829806b10386a908296b3bef602bc49ac50f15;hb=7650390de8f72822ec0d4a9fb5b52efcf0be4698;hp=42ce304fb053e5fc2a6c466a236bb7dbc1459ab9;hpb=c35bb6645f32bc684dc3da99d4d71c4ead2d4717;p=musl diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c index 42ce304f..62829806 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