diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-06 14:23:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-06 14:23:08 +0000 |
commit | 4de12cc0124f3574876763010b5f0c5cf9a67d91 (patch) | |
tree | 908dd9344c90c3dd348726bac1c3a746f0f0ce9e | |
parent | 1956f215e1537dba38ffc4021e0511c2dcf21092 (diff) | |
download | coreutils-4de12cc0124f3574876763010b5f0c5cf9a67d91.tar.xz |
(get_input_fstatus): Use xnmalloc, rather than xmalloc.
-rw-r--r-- | src/wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -541,7 +541,7 @@ wc_file (char const *file, struct fstatus *fstatus) static struct fstatus * get_input_fstatus (int nfiles, char * const *file) { - struct fstatus *fstatus = xmalloc (nfiles * sizeof *fstatus); + struct fstatus *fstatus = xnmalloc (nfiles, sizeof *fstatus); if (nfiles == 1 && ((print_lines + print_words + print_chars |