libc: Fix the typo error in wcrtomb

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id8841ca33a47cea3a1b68229979fd607049f766d
This commit is contained in:
Xiang Xiao 2020-06-02 13:46:55 +08:00 committed by patacongo
parent 57caa4e121
commit f1433ee8d2

View File

@ -62,7 +62,7 @@ size_t wcrtomb(FAR char *s, wchar_t wc, FAR mbstate_t *ps)
if (s == NULL)
{
retval = wctomb(buf, L'\0');
retval = wctomb(buf, wc);
}
else
{