Fix a typo that caused mbrtowc() to always return 0.

This commit is contained in:
Tim J. Robbins 2003-11-11 07:25:05 +00:00
parent d8c43e4c41
commit b1c572ad5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122467

View file

@ -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