From 669dd1d299341f9a28542390e3418c85251d6650 Mon Sep 17 00:00:00 2001 From: Chad Loder Date: Sun, 16 Feb 2003 03:09:51 +0000 Subject: Correct format string bug introduced in r1.7. ok mickey@ --- usr.bin/nohup/nohup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/nohup') diff --git a/usr.bin/nohup/nohup.c b/usr.bin/nohup/nohup.c index 1115bc6dc66..c9a19ae8f31 100644 --- a/usr.bin/nohup/nohup.c +++ b/usr.bin/nohup/nohup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nohup.c,v 1.9 2002/05/29 18:33:39 deraadt Exp $ */ +/* $OpenBSD: nohup.c,v 1.10 2003/02/16 03:09:50 cloder Exp $ */ /* $NetBSD: nohup.c,v 1.6 1995/08/31 23:35:25 jtc Exp $ */ /* @@ -44,7 +44,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)nohup.c 5.4 (Berkeley) 6/1/90"; #endif -static char rcsid[] = "$OpenBSD: nohup.c,v 1.9 2002/05/29 18:33:39 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: nohup.c,v 1.10 2003/02/16 03:09:50 cloder Exp $"; #endif /* not lint */ #include @@ -94,7 +94,7 @@ main(argc, argv) execvp(argv[1], &argv[1]); exit_status = (errno == ENOENT) ? EXIT_NOTFOUND : EXIT_NOEXEC; - err(exit_status, argv[1]); + err(exit_status, "%s", argv[1]); } static void -- cgit v1.2.3