diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 708a59b68e61..e4663f9b4c29 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 9152a2791b44..c6fc2a2dcc89 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); } }