(get_input_fstatus): Use xnmalloc, rather than xmalloc.

This commit is contained in:
Jim Meyering committed 2004-05-06 14:23:08 +00:00
1 parent 1956f215e1
commit 4de12cc012
1 file changed
+1 -1
+1 -1
View File
@@ -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