forked from pool/coreutils
use MB_CUR_MAX again, as that is the better (and smaller) choice
OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=258
This commit is contained in:
parent
2a760ea199
commit
9553e98f8b
@ -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;
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user