summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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]. */