summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-06 14:23:08 +0000
committerJim Meyering <jim@meyering.net>2004-05-06 14:23:08 +0000
commit4de12cc0124f3574876763010b5f0c5cf9a67d91 (patch)
tree908dd9344c90c3dd348726bac1c3a746f0f0ce9e /src/wc.c
parent1956f215e1537dba38ffc4021e0511c2dcf21092 (diff)
downloadcoreutils-4de12cc0124f3574876763010b5f0c5cf9a67d91.tar.xz
(get_input_fstatus): Use xnmalloc, rather than xmalloc.
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wc.c b/src/wc.c
index 091c04386..5a4bec4d6 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -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