diff options
Diffstat (limited to 'libc/upstream-openbsd/lib/libc/stdio/fputwc.c')
-rw-r--r-- | libc/upstream-openbsd/lib/libc/stdio/fputwc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/upstream-openbsd/lib/libc/stdio/fputwc.c b/libc/upstream-openbsd/lib/libc/stdio/fputwc.c index e156922ad..829c22c48 100644 --- a/libc/upstream-openbsd/lib/libc/stdio/fputwc.c +++ b/libc/upstream-openbsd/lib/libc/stdio/fputwc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fputwc.c,v 1.7 2016/01/26 13:57:02 schwarze Exp $ */ +/* $OpenBSD: fputwc.c,v 1.6 2015/10/01 02:32:07 guenther Exp $ */ /* $NetBSD: fputwc.c,v 1.3 2003/03/07 07:11:37 tshiozak Exp $ */ /*- @@ -62,7 +62,7 @@ __fputwc_unlock(wchar_t wc, FILE *fp) size = wcrtomb(buf, wc, st); if (size == (size_t)-1) { - fp->_flags |= __SERR; + errno = EILSEQ; return WEOF; } |