Skip to content

Commit

Permalink
iconv/wctomb: fix memory corruption related to CURRENT_UTF8 implement…
Browse files Browse the repository at this point in the history
…ation (#511)
  • Loading branch information
Mrmaxmeier committed Jul 8, 2024
1 parent 5667be1 commit 3f43ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-top-half/musl/src/internal/locale_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f43ea9

Please sign in to comment.