diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-11-01 08:18:18 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-11-01 08:18:18 +0000 |
| commit | d86d5b37b77536cad00d64edf0a9b4da57414c49 (patch) | |
| tree | b88f979092cebd54b0e6dba041794add6b241b0d /lib | |
| parent | 96af9ea52b486a72f98e00eb97ce9fbdf15afe74 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/stdio/fputwc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fputwc.c b/lib/libc/stdio/fputwc.c index 1f42ce9e808a..ed1f11bbcccb 100644 --- a/lib/libc/stdio/fputwc.c +++ b/lib/libc/stdio/fputwc.c @@ -47,7 +47,7 @@ __fputwc(wchar_t wc, FILE *fp) mbstate_t mbs; size_t i, len; - if (MB_LEN_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) { + if (MB_CUR_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) { /* * Assume single-byte locale with no special encoding. * A more careful test would be to check |
