aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch/fetch.c
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-11-27 07:35:53 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-11-27 07:35:53 +0000
commita6f339d266573e57257f3a496baa6b3c76f07210 (patch)
tree2a112b39c580886ccf4cf975a268f49b268b8444 /usr.bin/fetch/fetch.c
parent963d55d108943ff8786cdfbf046c8d596795194e (diff)
downloadsrc-a6f339d266573e57257f3a496baa6b3c76f07210.tar.gz
src-a6f339d266573e57257f3a496baa6b3c76f07210.zip
Format string auditing
Notes
Notes: svn path=/head/; revision=69256
Diffstat (limited to 'usr.bin/fetch/fetch.c')
-rw-r--r--usr.bin/fetch/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 2004d8f4a590..775424022241 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -600,7 +600,7 @@ main(int argc, char *argv[])
errx(1, "invalid hostname");
if (asprintf(argv, "ftp://%s/%s/%s", h_hostname,
c_dirname ? c_dirname : "", f_filename) == -1)
- errx(1, strerror(ENOMEM));
+ errx(1, "%s", strerror(ENOMEM));
argc++;
}
@@ -613,7 +613,7 @@ main(int argc, char *argv[])
if (B_size < MINBUFSIZE)
B_size = MINBUFSIZE;
if ((buf = malloc(B_size)) == NULL)
- errx(1, strerror(ENOMEM));
+ errx(1, "%s", strerror(ENOMEM));
/* timeouts */
if ((s = getenv("FTP_TIMEOUT")) != NULL) {