From: Jim Meyering Date: Thu, 6 May 2004 14:24:50 +0000 (+0000) Subject: (main): Use xnmalloc, rather than xmalloc. X-Git-Tag: v5.3.0~1617 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=782b73c51431bb4f3b549d1ffbfe7ac05551bf2a;p=thirdparty%2Fcoreutils.git (main): Use xnmalloc, rather than xmalloc. --- diff --git a/src/df.c b/src/df.c index 40af136034..6e4adc696c 100644 --- a/src/df.c +++ b/src/df.c @@ -877,7 +877,7 @@ main (int argc, char **argv) /* stat all the given entries to make sure they get automounted, if necessary, before reading the filesystem table. */ - stats = xmalloc ((argc - optind) * sizeof *stats); + stats = xnmalloc (argc - optind, sizeof *stats); for (i = optind; i < argc; ++i) { if (stat (argv[i], &stats[i - optind]))