diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-20 10:22:06 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-20 10:22:36 +0200 |
commit | 9de1cfbf0344ec48fe94c9f070159b742058a13f (patch) | |
tree | e2452a1c216a3a0546987da1a1b3621e24ddbe43 | |
parent | 5a273edf4dc53fc38495b1fbf38bc11962a74168 (diff) | |
download | abuild-9de1cfbf0344ec48fe94c9f070159b742058a13f.tar.gz abuild-9de1cfbf0344ec48fe94c9f070159b742058a13f.tar.bz2 abuild-9de1cfbf0344ec48fe94c9f070159b742058a13f.tar.xz abuild-9de1cfbf0344ec48fe94c9f070159b742058a13f.zip |
abuild-fetch: fix -Wformat-security warnings
-rw-r--r-- | abuild-fetch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/abuild-fetch.c b/abuild-fetch.c index d723550..ee8f4b9 100644 --- a/abuild-fetch.c +++ b/abuild-fetch.c @@ -78,7 +78,7 @@ int fetch(char *url, const char *destdir) name = strrchr(url, '/'); if (name == NULL) - errx(1, "%s: no '/' in url"); + errx(1, "%s: no '/' in url", url); p = strstr(url, "::"); if (p != NULL) { name = url; @@ -97,7 +97,7 @@ int fetch(char *url, const char *destdir) lockfd = open(lockfile, O_WRONLY|O_CREAT, 0660); if (lockfd < 0) - err(1, lockfile); + err(1, "%s", lockfile); if (fcntl(lockfd, F_SETLK, &fl) < 0) { int i; @@ -133,7 +133,7 @@ int fetch(char *url, const char *destdir) execvp(curlcmd.argv[0], curlcmd.argv); printf("Using wget\n"); execvp(wgetcmd.argv[0], wgetcmd.argv); - warn(wgetcmd.argv[0]); + warn("%s", wgetcmd.argv[0]); unlink(lockfile); _exit(1); } |