summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-06 14:24:50 +0000
committerJim Meyering <jim@meyering.net>2004-05-06 14:24:50 +0000
commit782b73c51431bb4f3b549d1ffbfe7ac05551bf2a (patch)
treedbfe9d707c6b116bae0c17058a8b11a86a4f9af1 /src
parent94c2794761bdca0b8523b279cf4cdb03bf343234 (diff)
downloadcoreutils-782b73c51431bb4f3b549d1ffbfe7ac05551bf2a.tar.xz
(main): Use xnmalloc, rather than xmalloc.
Diffstat (limited to 'src')
-rw-r--r--src/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/df.c b/src/df.c
index 40af13603..6e4adc696 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]))