diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2008-04-17 22:17:54 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2008-04-17 22:17:54 +0000 |
| commit | 1e98f88776fc606df245a382685b1ac634a81389 (patch) | |
| tree | b259dd878c8cb0ee9fb15608aebb9453ad10e7b1 /lib/libc/stdio/fputwc.c | |
| parent | aba7c5b84b764f7dcb96c651735aa1bb10348d34 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/fputwc.c')
| -rw-r--r-- | lib/libc/stdio/fputwc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdio/fputwc.c b/lib/libc/stdio/fputwc.c index 0848b74998d1..ae92f662822c 100644 --- a/lib/libc/stdio/fputwc.c +++ b/lib/libc/stdio/fputwc.c @@ -56,8 +56,7 @@ __fputwc(wchar_t wc, FILE *fp) *buf = (unsigned char)wc; len = 1; } else { - if ((len = __wcrtomb(buf, wc, &fp->_extra->mbstate)) == - (size_t)-1) { + if ((len = __wcrtomb(buf, wc, &fp->_mbstate)) == (size_t)-1) { fp->_flags |= __SERR; return (WEOF); } |
