From: Jim Meyering Date: Sun, 4 Jan 2004 21:07:40 +0000 (+0000) Subject: (tee): Use xnmalloc rather than xmalloc. X-Git-Tag: v5.1.1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c34f3b99593897e0f0ba1abba191fd6e5078104e;p=thirdparty%2Fcoreutils.git (tee): Use xnmalloc rather than xmalloc. --- diff --git a/src/tee.c b/src/tee.c index 37cd3e727d..6f40c45097 100644 --- a/src/tee.c +++ b/src/tee.c @@ -166,7 +166,7 @@ tee (int nfiles, const char **files) int ret = 0; const char *mode_string = (append ? "a" : "w"); - descriptors = xmalloc ((nfiles + 1) * sizeof (descriptors[0])); + descriptors = xnmalloc (nfiles + 1, sizeof *descriptors); /* Move all the names `up' one in the argv array to make room for the entry for standard output. This writes into argv[argc]. */