X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fungetwc.c;h=6871d0344a037314727235a99d49262fd77a4fbb;hb=9ae8d5fc71a4b61ec826d58f03f7b543755fb1d4;hp=f7cde2e0c777737e7df8746306add7e03b7fe188;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/ungetwc.c b/src/stdio/ungetwc.c index f7cde2e0..6871d034 100644 --- a/src/stdio/ungetwc.c +++ b/src/stdio/ungetwc.c @@ -8,7 +8,7 @@ wint_t ungetwc(wint_t c, FILE *f) if (c == WEOF) return c; /* Try conversion early so we can fail without locking if invalid */ - if (!isascii(c) && (l = wctomb(mbc, c)) < 0) + if (!isascii(c) && (l = wctomb((void *)mbc, c)) < 0) return WEOF; FLOCK(f);