mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 14:54:24 +00:00
Fix a typo that caused mbrtowc() to always return 0.
This commit is contained in:
parent
d8c43e4c41
commit
b1c572ad5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122467
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue