summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index d5c0c31d8..bfb059cb3 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -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];