diff --git a/coreutils-i18n.patch b/coreutils-i18n.patch index f8d7070..e2cd380 100644 --- a/coreutils-i18n.patch +++ b/coreutils-i18n.patch @@ -3262,8 +3262,8 @@ Index: src/sort.c + + if (ignore || translate) + { -+ char *copy_a = (char *) xmalloc((lena + lenb) * MB_LEN_MAX + 2); -+ char *copy_b = copy_a + (lena * MB_LEN_MAX) + 1; ++ char *copy_a = (char *) xmalloc((lena + lenb) * MB_CUR_MAX + 2); ++ char *copy_b = copy_a + (lena * MB_CUR_MAX) + 1; + size_t new_len_a, new_len_b; + size_t i, j; +