diff options
Diffstat (limited to 'src')
-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]. */ |