mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-13 19:11:37 +00:00
iconv/wctomb: fix memory corruption related to CURRENT_UTF8 implementation (#511)
This commit is contained in:
parent
5667be15d6
commit
3f43ea9abb
@ -64,7 +64,7 @@ hidden char *__gettextdomain(void);
|
||||
&libc.current_locale; \
|
||||
}))
|
||||
|
||||
#define CURRENT_UTF8 (!!libc.global_locale.cat[LC_CTYPE])
|
||||
#define CURRENT_UTF8 (!!CURRENT_LOCALE->cat[LC_CTYPE])
|
||||
#endif
|
||||
|
||||
#undef MB_CUR_MAX
|
||||
|
Loading…
Reference in New Issue
Block a user