X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffputws.c;h=b75f95bc7c47eb529f4e543d20711e0a2fe838ed;hb=aed707f679cce80afd929f0efaf080f1e8481330;hp=9057853bcc24ce126fe08aad5920620a7846b7d2;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/fputws.c b/src/stdio/fputws.c index 9057853b..b75f95bc 100644 --- a/src/stdio/fputws.c +++ b/src/stdio/fputws.c @@ -9,7 +9,7 @@ int fputws(const wchar_t *ws, FILE *f) f->mode |= f->mode+1; - while (ws && (l = wcsrtombs(buf, (void*)&ws, sizeof buf, 0))+1 > 1) + while (ws && (l = wcsrtombs((void *)buf, (void*)&ws, sizeof buf, 0))+1 > 1) if (__fwritex(buf, l, f) < l) { FUNLOCK(f); return -1;