From: Jim Meyering Date: Thu, 6 May 2004 14:23:08 +0000 (+0000) Subject: (get_input_fstatus): Use xnmalloc, rather than xmalloc. X-Git-Tag: v5.3.0~1619 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4de12cc0124f3574876763010b5f0c5cf9a67d91;p=thirdparty%2Fcoreutils.git (get_input_fstatus): Use xnmalloc, rather than xmalloc. --- 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