From c34f3b99593897e0f0ba1abba191fd6e5078104e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Jan 2004 21:07:40 +0000 Subject: (tee): Use xnmalloc rather than xmalloc. --- src/tee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tee.c') 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]. */ -- cgit v1.2.3-70-g09d2