From 33f601976512e550630a55b1b5e60f8fb225ab05 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 28 Jun 2000 23:57:37 +0000 Subject: in quit(), be more careful about possible nasty parameters in the future --- usr.sbin/rwhod/rwhod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c index a028191897f..cb0bea7d58d 100644 --- a/usr.sbin/rwhod/rwhod.c +++ b/usr.sbin/rwhod/rwhod.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: rwhod.c,v 1.12 1998/08/16 21:22:18 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rwhod.c,v 1.13 2000/06/28 23:57:36 deraadt Exp $"; #endif /* not lint */ #include @@ -389,7 +389,7 @@ void quit(msg) char *msg; { - syslog(LOG_ERR, msg); + syslog(LOG_ERR, "%s", msg); exit(1); } -- cgit v1.2.3