summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/mbstowcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/mbstowcs.c')
-rw-r--r--lib/libc/locale/mbstowcs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/locale/mbstowcs.c b/lib/libc/locale/mbstowcs.c
index a9adb8a..7fd8663 100644
--- a/lib/libc/locale/mbstowcs.c
+++ b/lib/libc/locale/mbstowcs.c
@@ -67,6 +67,7 @@ mbstowcs(wchar_t * __restrict pwcs, const char * __restrict s, size_t n)
errno = EILSEQ;
return (-1);
}
+ return (cnt);
}
/* Convert, store and count characters. */
OpenPOWER on IntegriCloud