summaryrefslogtreecommitdiff
path: root/src/multibyte/mbstowcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multibyte/mbstowcs.c')
-rw-r--r--src/multibyte/mbstowcs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/multibyte/mbstowcs.c b/src/multibyte/mbstowcs.c
index 5071baf7..8e3fac15 100644
--- a/src/multibyte/mbstowcs.c
+++ b/src/multibyte/mbstowcs.c
@@ -13,6 +13,5 @@
size_t mbstowcs(wchar_t *restrict ws, const char *restrict s, size_t wn)
{
- mbstate_t st = { 0 };
- return mbsrtowcs(ws, (void*)&s, wn, &st);
+ return mbsrtowcs(ws, (void*)&s, wn, 0);
}