]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Use xnmalloc, rather than xmalloc.
authorJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:50:17 +0000 (14:50 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 May 2004 14:50:17 +0000 (14:50 +0000)
src/tail.c

index d5c0c31d8c9f84ca5b12ff924142203abaf5b486..bfb059cb34b732f0f8f30015ba7cb3c8b64c12d4 100644 (file)
@@ -1730,7 +1730,7 @@ main (int argc, char **argv)
                     " indefinitely is ineffective"));
   }
 
-  F = xmalloc (n_files * sizeof (F[0]));
+  F = xnmalloc (n_files, sizeof *F);
   for (i = 0; i < n_files; i++)
     F[i].name = file[i];