mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-14 10:48:51 +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; \
|
&libc.current_locale; \
|
||||||
}))
|
}))
|
||||||
|
|
||||||
#define CURRENT_UTF8 (!!libc.global_locale.cat[LC_CTYPE])
|
#define CURRENT_UTF8 (!!CURRENT_LOCALE->cat[LC_CTYPE])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef MB_CUR_MAX
|
#undef MB_CUR_MAX
|
||||||
|
Loading…
Reference in New Issue
Block a user