projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68eb5f3
)
(tee): Use xnmalloc rather than xmalloc.
author
Jim Meyering
<jim@meyering.net>
Sun, 4 Jan 2004 21:07:40 +0000
(21:07 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 4 Jan 2004 21:07:40 +0000
(21:07 +0000)
src/tee.c
patch
|
blob
|
history
diff --git
a/src/tee.c
b/src/tee.c
index 37cd3e727de626db94829badc08d6afabfeedab1..6f40c45097f84ea4f47a6fb60580d3423422e6a3 100644
(file)
--- 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 = x
malloc ((nfiles + 1) * sizeof (descriptors[0])
);
+ descriptors = x
nmalloc (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]. */