Format string auditing

This commit is contained in:
Kris Kennaway 2000-11-27 07:35:53 +00:00
parent 963d55d108
commit a6f339d266
1 changed files with 2 additions and 2 deletions

View File

@ -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) {