From 589fe08addb296a3072261891387ccabb9db464d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 29 Jun 2000 00:01:15 +0000 Subject: use %s when calling syslog --- sbin/isakmpd/log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin') diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c index 2f66d3551d3..075efa8a176 100644 --- a/sbin/isakmpd/log.c +++ b/sbin/isakmpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.10 2000/04/07 22:05:38 niklas Exp $ */ +/* $OpenBSD: log.c,v 1.11 2000/06/29 00:01:14 deraadt Exp $ */ /* $EOM: log.c,v 1.27 2000/03/30 14:27:03 ho Exp $ */ /* @@ -143,11 +143,11 @@ _log_print (int error, int syslog_level, const char *fmt, va_list ap, log_to (0); /* (Re)send current message to syslog(). */ - syslog (class == LOG_REPORT ? LOG_ALERT : syslog_level, buffer); + syslog (class == LOG_REPORT ? LOG_ALERT : syslog_level, "%s", buffer); } } else - syslog (class == LOG_REPORT ? LOG_ALERT : syslog_level, buffer); + syslog (class == LOG_REPORT ? LOG_ALERT : syslog_level, "%s", buffer); } #ifdef USE_DEBUG -- cgit v1.2.3