From b601f693db5d48359c5e28f498c379b968cca7c3 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 19 Nov 2000 10:52:10 +0000 Subject: [PATCH] Format string paranoia Obtained from: OpenBSD --- libexec/rbootd/rbootd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/rbootd/rbootd.c b/libexec/rbootd/rbootd.c index 2f7c38435364..70bd7912a7f8 100644 --- a/libexec/rbootd/rbootd.c +++ b/libexec/rbootd/rbootd.c @@ -154,7 +154,8 @@ main(argc, argv) if ((IntfName = BpfGetIntfName(&errmsg)) == NULL) { syslog(LOG_NOTICE, "restarted (??)"); - syslog(LOG_ERR, errmsg); + /* BpfGetIntfName() returns safe names, using %m */ + syslog(LOG_ERR, "%s", errmsg); Exit(0); } }