summaryrefslogtreecommitdiff
path: root/src/df.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/df.c')
-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]))