SHA256
1
0
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:
Bernhard Voelker 2015-05-13 09:42:40 +00:00 committed by Git OBS Bridge
parent 2a760ea199
commit 9553e98f8b

View File

@ -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;
+