diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-11-27 07:35:53 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-11-27 07:35:53 +0000 |
commit | a6f339d266573e57257f3a496baa6b3c76f07210 (patch) | |
tree | 2a112b39c580886ccf4cf975a268f49b268b8444 /usr.bin/fetch/fetch.c | |
parent | 963d55d108943ff8786cdfbf046c8d596795194e (diff) | |
download | src-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.c | 4 |
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) { |