From b6dd569b3a49a1277744afc991124e5f4391d9875715874d96d5eeb57995a436 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Fri, 20 Dec 2013 08:58:45 +0000 Subject: [PATCH] Fix previous commit: call xcalloc for 1 member OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=216 --- coreutils-i18n.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreutils-i18n.patch b/coreutils-i18n.patch index adcc408..dbf4248 100644 --- a/coreutils-i18n.patch +++ b/coreutils-i18n.patch @@ -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++) + {