From a1a3b8e5d80ac24fe1ef0859a253b61127e8050e Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 10 Jul 2000 09:18:19 +0000 Subject: Don't call warn() with no format string. --- usr.bin/script/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/script') 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(); } -- cgit v1.1