summaryrefslogtreecommitdiff
path: root/usr.bin/fetch/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/fetch/main.c')
-rw-r--r--usr.bin/fetch/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c
index 09d0ae3cdf33..1b899a2b52d0 100644
--- a/usr.bin/fetch/main.c
+++ b/usr.bin/fetch/main.c
@@ -300,7 +300,7 @@ display(struct fetch_state *fs, off_t size, ssize_t n)
gettimeofday(&t0, &tz);
t_start = t0;
bytes = pr = 0;
- s = malloc(strlen(fs->fs_outputfile) + 50);
+ s = safe_malloc(strlen(fs->fs_outputfile) + 50);
if (size > 0)
sprintf (s, "Receiving %s (%qd bytes)%s", fs->fs_outputfile,
(quad_t)size,