X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvfprintf.c;h=57878c031f418d78d292eb53ea10ea2170b22b0a;hb=c68b26369e89ead7511ef113850035775c5d183d;hp=19afd6c9a5389a687f465b9ffb119b8bac1f7f7e;hpb=bdc9ed15651b70e89f83c5a9f7d1ba349e624503;p=musl diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 19afd6c9..57878c03 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -149,7 +149,7 @@ static void pop_arg(union arg *arg, int type, va_list *ap) static void out(FILE *f, const char *s, size_t l) { - __fwritex(s, l, f); + __fwritex((void *)s, l, f); } static void pad(FILE *f, char c, int w, int l, int fl) @@ -434,7 +434,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg, /* Update output count, end loop when fmt is exhausted */ if (cnt >= 0) { if (l > INT_MAX - cnt) { - if (!ferror(f)) errno = EOVERFLOW; + errno = EOVERFLOW; cnt = -1; } else cnt += l; }