diff options
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/mbstowcs.c | 2 | ||||
-rw-r--r-- | stdlib/wcstombs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/mbstowcs.c b/stdlib/mbstowcs.c index 8eda3ba41d..da3ae6b19d 100644 --- a/stdlib/mbstowcs.c +++ b/stdlib/mbstowcs.c @@ -36,7 +36,7 @@ mbstowcs (wchar_t *pwcs, const char *s, size_t n) mbstate_t save_shift = __no_r_state; size_t written; - written = mbsrtowcs (pwcs, s, n, &__no_r_state); + written = mbsrtowcs (pwcs, &s, n, &__no_r_state); /* Restore the old shift state. */ __no_r_state = save_shift; diff --git a/stdlib/wcstombs.c b/stdlib/wcstombs.c index 6518308181..73f015bf7e 100644 --- a/stdlib/wcstombs.c +++ b/stdlib/wcstombs.c @@ -36,7 +36,7 @@ wcstombs (char *s, const wchar_t *pwcs, size_t n) mbstate_t save_shift = __no_r_state; size_t written; - written = mbsrtowcs (pwcs, s, n, &__no_r_state); + written = wcsrtombs (s, &pwcs, n, &__no_r_state); /* Restore the old shift state. */ __no_r_state = save_shift; |