diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-29 00:21:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-29 00:21:53 +0000 |
commit | dd5d98548c59a9c43c16572300c7ea63f0b3143d (patch) | |
tree | 90a9dddbafe5c1d9ce88aacfbad2107cc91309e9 | |
parent | 6f3a5059e46eb4cfa79c9f7c699f9910c09d82be (diff) |
use %s with syslog, at least crashable from command line
-rw-r--r-- | usr.sbin/faithd/faithd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/faithd/faithd.c b/usr.sbin/faithd/faithd.c index 9429e19b26d..4259bdf0df8 100644 --- a/usr.sbin/faithd/faithd.c +++ b/usr.sbin/faithd/faithd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: faithd.c,v 1.5 2000/05/31 03:09:22 itojun Exp $ */ +/* $OpenBSD: faithd.c,v 1.6 2000/06/29 00:21:52 deraadt Exp $ */ /* $KAME: faithd.c,v 1.18 2000/05/31 03:06:07 itojun Exp $ */ /* @@ -664,7 +664,7 @@ exit_failure(const char *fmt, ...) va_start(ap, fmt); vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); - syslog(LOG_ERR, buf); + syslog(LOG_ERR, "%s", buf); exit(EXIT_FAILURE); } @@ -677,7 +677,7 @@ exit_success(const char *fmt, ...) va_start(ap, fmt); vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); - syslog(LOG_INFO, buf); + syslog(LOG_INFO, "%s", buf); exit(EXIT_SUCCESS); } |