From 4de12cc0124f3574876763010b5f0c5cf9a67d91 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 May 2004 14:23:08 +0000 Subject: [PATCH] (get_input_fstatus): Use xnmalloc, rather than xmalloc. --- src/wc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wc.c b/src/wc.c index 091c04386f..5a4bec4d6e 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 -- 2.47.3