diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-04 21:07:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-04 21:07:40 +0000 |
commit | c34f3b99593897e0f0ba1abba191fd6e5078104e (patch) | |
tree | e39dcbd7e81bdccd35d19cc6003ef7f80c3c85a0 /src/tee.c | |
parent | 68eb5f3e0d6b1c8eb70ae107bc06799da726019a (diff) | |
download | coreutils-c34f3b99593897e0f0ba1abba191fd6e5078104e.tar.xz |
(tee): Use xnmalloc rather than xmalloc.
Diffstat (limited to 'src/tee.c')
-rw-r--r-- | src/tee.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]. */ |