diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-11-11 07:25:05 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-11-11 07:25:05 +0000 |
commit | b1c572ad5b87d1c357e0aeafe7ff296235f35d22 (patch) | |
tree | d387a49f67b3eb655d659fa56cca541632d59207 /lib/libc/locale/utf8.c | |
parent | d8c43e4c41426c725bf1570e358acfc32816cb30 (diff) | |
download | src-b1c572ad5b87d1c357e0aeafe7ff296235f35d22.tar.gz src-b1c572ad5b87d1c357e0aeafe7ff296235f35d22.zip |
Fix a typo that caused mbrtowc() to always return 0.
Notes
Notes:
svn path=/head/; revision=122467
Diffstat (limited to 'lib/libc/locale/utf8.c')
-rw-r--r-- | lib/libc/locale/utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/utf8.c b/lib/libc/locale/utf8.c index 10f937b9bb46..e1cbdeaf00e9 100644 --- a/lib/libc/locale/utf8.c +++ b/lib/libc/locale/utf8.c @@ -143,7 +143,7 @@ _UTF8_mbrtowc(wchar_t * __restrict pwc, const char * __restrict s, size_t n, } if (pwc != NULL) *pwc = wch; - return (wch == L'\0' ? 0 : i); + return (wch == L'\0' ? 0 : len); } size_t |