X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffgetwc.c;h=6f9f9ec21f8351cecf5131db636f8600364e8fab;hb=ef2f595f7489a79b328766e3f8c2c899c8d23fd1;hp=77b30fd18df076664895f8d6eff2182039cccea2;hpb=a8c17e6587e68c4330999dd408d4add1d81296bf;p=musl diff --git a/src/stdio/fgetwc.c b/src/stdio/fgetwc.c index 77b30fd1..6f9f9ec2 100644 --- a/src/stdio/fgetwc.c +++ b/src/stdio/fgetwc.c @@ -23,9 +23,9 @@ wint_t __fgetwc_unlocked(FILE *f) } } else l = -2; - /* Convert character byte-by-byte from __uflow */ + /* Convert character byte-by-byte */ while (l == -2) { - b = c = __uflow(f); + b = c = getc_unlocked(f); if (c < 0) { if (!mbsinit(&st)) errno = EILSEQ; return WEOF; @@ -34,7 +34,6 @@ wint_t __fgetwc_unlocked(FILE *f) if (l == -1) return WEOF; } - FUNLOCK(f); return wc; }