Skip to content

Commit 3f43ea9

Browse files
authored
iconv/wctomb: fix memory corruption related to CURRENT_UTF8 implementation (#511)
1 parent 5667be1 commit 3f43ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc-top-half/musl/src/internal/locale_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ hidden char *__gettextdomain(void);
6464
&libc.current_locale; \
6565
}))
6666

67-
#define CURRENT_UTF8 (!!libc.global_locale.cat[LC_CTYPE])
67+
#define CURRENT_UTF8 (!!CURRENT_LOCALE->cat[LC_CTYPE])
6868
#endif
6969

7070
#undef MB_CUR_MAX

0 commit comments

Comments
 (0)