This is an automated email from the ASF dual-hosted git repository. gnutt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit f1433ee8d20d3da01ab3ec0384896e44fc0b9f2c Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Tue Jun 2 13:46:55 2020 +0800 libc: Fix the typo error in wcrtomb Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> Change-Id: Id8841ca33a47cea3a1b68229979fd607049f766d --- libs/libc/wchar/lib_wcrtomb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/wchar/lib_wcrtomb.c b/libs/libc/wchar/lib_wcrtomb.c index d28c49b..cccdde0 100644 --- a/libs/libc/wchar/lib_wcrtomb.c +++ b/libs/libc/wchar/lib_wcrtomb.c @@ -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 {