summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-07-10 09:18:19 +0000
committerkris <kris@FreeBSD.org>2000-07-10 09:18:19 +0000
commita1a3b8e5d80ac24fe1ef0859a253b61127e8050e (patch)
tree7328c2c698368e8332b1d9e45ee04c00586cb68e /usr.bin
parent74a1be3402cdf41e683eb2ad6e6967a9a09269fd (diff)
downloadFreeBSD-src-a1a3b8e5d80ac24fe1ef0859a253b61127e8050e.zip
FreeBSD-src-a1a3b8e5d80ac24fe1ef0859a253b61127e8050e.tar.gz
Don't call warn() with no format string.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/script/script.c4
-rw-r--r--usr.bin/soelim/soelim.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 708a59b..e4663f9 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -244,10 +244,10 @@ doshell(av)
login_tty(slave);
if (av[0]) {
execvp(av[0], av);
- warn(av[0]);
+ warn("%s", av[0]);
} else {
execl(shell, shell, "-i", NULL);
- warn(shell);
+ warn("%s", shell);
}
fail();
}
diff --git a/usr.bin/soelim/soelim.c b/usr.bin/soelim/soelim.c
index 9152a27..c6fc2a2 100644
--- a/usr.bin/soelim/soelim.c
+++ b/usr.bin/soelim/soelim.c
@@ -102,7 +102,7 @@ process(file)
} else {
soee = fopen(file, "r");
if (soee == NULL) {
- warn(file);
+ warn("%s", file);
return(-1);
}
}
OpenPOWER on IntegriCloud