aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/locale/wcsrtombs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/wcsrtombs.c')
-rw-r--r--lib/libc/locale/wcsrtombs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/wcsrtombs.c b/lib/libc/locale/wcsrtombs.c
index ca9875799a3d..1466eab7046d 100644
--- a/lib/libc/locale/wcsrtombs.c
+++ b/lib/libc/locale/wcsrtombs.c
@@ -46,7 +46,7 @@ wcsrtombs_l(char * __restrict dst, const wchar_t ** __restrict src, size_t len,
{
FIX_LOCALE(locale);
if (ps == NULL)
- ps = &locale->wcsrtombs;
+ ps = &(XLOCALE_CTYPE(locale)->wcsrtombs);
return (XLOCALE_CTYPE(locale)->__wcsnrtombs(dst, src, SIZE_T_MAX, len, ps));
}