diff options
Diffstat (limited to 'lib/libc/stdio/fgetwc.c')
-rw-r--r-- | lib/libc/stdio/fgetwc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/fgetwc.c b/lib/libc/stdio/fgetwc.c index 311391a..93438a6 100644 --- a/lib/libc/stdio/fgetwc.c +++ b/lib/libc/stdio/fgetwc.c @@ -104,5 +104,6 @@ __fgetwc_nbf(FILE *fp) while (n-- != 0) __ungetc((unsigned char)buf[n], fp); errno = EILSEQ; + fp->_flags |= __SERR; return (WEOF); } |