summaryrefslogtreecommitdiff
path: root/src/tee.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-04 21:07:40 +0000
committerJim Meyering <jim@meyering.net>2004-01-04 21:07:40 +0000
commitc34f3b99593897e0f0ba1abba191fd6e5078104e (patch)
treee39dcbd7e81bdccd35d19cc6003ef7f80c3c85a0 /src/tee.c
parent68eb5f3e0d6b1c8eb70ae107bc06799da726019a (diff)
downloadcoreutils-c34f3b99593897e0f0ba1abba191fd6e5078104e.tar.xz
(tee): Use xnmalloc rather than xmalloc.
Diffstat (limited to 'src/tee.c')
-rw-r--r--src/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tee.c b/src/tee.c
index 37cd3e727..6f40c4509 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]. */