diff options
author | kris <kris@FreeBSD.org> | 2000-11-27 07:35:53 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-27 07:35:53 +0000 |
commit | 303a4f96b9ff724edc01fec2419bb439be31f30d (patch) | |
tree | 89dcc3a4cb80f4f7fe6fd9ed606f8a03f572b8fa /usr.bin/fetch | |
parent | 9f0ff212ac3dc4ff029854514113278946516735 (diff) | |
download | FreeBSD-src-303a4f96b9ff724edc01fec2419bb439be31f30d.zip FreeBSD-src-303a4f96b9ff724edc01fec2419bb439be31f30d.tar.gz |
Format string auditing
Diffstat (limited to 'usr.bin/fetch')
-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 2004d8f..7754240 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) { |