diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-28 23:58:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-06-28 23:58:49 +0000 |
commit | 37fde5401d7660825598e566a055de4dea61fec8 (patch) | |
tree | 12bf98e2e06e5285951e82d8f488230197d668a4 /usr.sbin/ypserv/yppush | |
parent | 33f601976512e550630a55b1b5e60f8fb225ab05 (diff) |
make _msgout() use syslog() with a %s, for future safety
Diffstat (limited to 'usr.sbin/ypserv/yppush')
-rw-r--r-- | usr.sbin/ypserv/yppush/yppush_svc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/yppush/yppush_svc.c b/usr.sbin/ypserv/yppush/yppush_svc.c index 16d5c318d9e..3d67eadd507 100644 --- a/usr.sbin/ypserv/yppush/yppush_svc.c +++ b/usr.sbin/ypserv/yppush/yppush_svc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yppush_svc.c,v 1.2 1996/05/30 09:53:22 deraadt Exp $ */ +/* $OpenBSD: yppush_svc.c,v 1.3 2000/06/28 23:58:24 deraadt Exp $ */ /* * Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se> @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: yppush_svc.c,v 1.2 1996/05/30 09:53:22 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: yppush_svc.c,v 1.3 2000/06/28 23:58:24 deraadt Exp $"; #endif /* not lint */ #include "yppush.h" @@ -70,11 +70,11 @@ void _msgout(msg) { #ifdef RPC_SVC_FG if (_rpcpmstart) - syslog(LOG_ERR, msg); + syslog(LOG_ERR, "%s", msg); else (void) fprintf(stderr, "%s\n", msg); #else - syslog(LOG_ERR, msg); + syslog(LOG_ERR, "%s", msg); #endif } |