diff options
author | tjr <tjr@FreeBSD.org> | 2002-09-18 10:21:41 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-09-18 10:21:41 +0000 |
commit | bb655f01d394e53797a84b0158e8017980c464a7 (patch) | |
tree | 6a631ab0598b268372cbd78ab1ea2d85241ee470 /lib/libc/stdio | |
parent | b1b1af8b9561abfe16c28282e74d1d49f368a822 (diff) | |
download | FreeBSD-src-bb655f01d394e53797a84b0158e8017980c464a7.zip FreeBSD-src-bb655f01d394e53797a84b0158e8017980c464a7.tar.gz |
Logic error in previous: don't exit the loop when an incomplete multibyte
sequence is detected.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fgetwc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fgetwc.c b/lib/libc/stdio/fgetwc.c index c726caf..9d168cc 100644 --- a/lib/libc/stdio/fgetwc.c +++ b/lib/libc/stdio/fgetwc.c @@ -61,7 +61,7 @@ fgetwc(FILE *fp) return (wc); else if (nconv == 0) return (L'\0'); - else if (nconv == (size_t)-2 || nconv == (size_t)-1) + else if (nconv == (size_t)-1) break; } |