mbtowc: Fix non compliant behavior for end of string
commite54692f524c5ada8883afcdd65b2ab998083c3fe
authorChristophe Lyon <christophe.lyon@st.com>
Wed, 4 Jul 2018 16:09:19 +0000 (4 18:09 +0200)
committerWaldemar Brodkorb <wbrodkorb@conet.de>
Fri, 10 Aug 2018 14:02:45 +0000 (10 16:02 +0200)
tree188601181abbfc66c37e6b94b6570d1bb758be6d
parentd53bc3437f941cf01bf709ddd8e9c394db095b7a
mbtowc: Fix non compliant behavior for end of string

Match glibc behavior.

* libc/stdlib/stdlib.c (mbtowc): Fix end of string behavior.

Signed-off-by: Mickaël Guêné <mickael.guene@st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
libc/stdlib/stdlib.c