forked from pool/coreutils
Fix previous commit: call xcalloc for 1 member
OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=216
This commit is contained in:
parent
edd1210fec
commit
b6dd569b3a
@ -1498,7 +1498,7 @@ Index: src/join.c
|
||||
+ for (i = 0; i < 2; i++)
|
||||
+ {
|
||||
+ mallocd = 1;
|
||||
+ copy[i] = xcalloc (0, len[i] + 1);
|
||||
+ copy[i] = xcalloc (1, len[i] + 1);
|
||||
+
|
||||
+ for (j = 0; j < MIN (len[0], len[1]);)
|
||||
+ {
|
||||
@ -3902,7 +3902,7 @@ Index: src/uniq.c
|
||||
+
|
||||
+ for (i = 0; i < 2; i++)
|
||||
+ {
|
||||
+ copy[i] = xcalloc (0, len[i] + 1);
|
||||
+ copy[i] = xcalloc (1, len[i] + 1);
|
||||
+
|
||||
+ for (j = 0, chars = 0; j < len[i] && chars < check_chars; chars++)
|
||||
+ {
|
||||
|
Loading…
Reference in New Issue
Block a user