diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-11-19 10:52:10 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-11-19 10:52:10 +0000 |
commit | b601f693db5d48359c5e28f498c379b968cca7c3 (patch) | |
tree | 53ee2399d8d6eb85bd41003607104a35306caa2d /libexec/rbootd | |
parent | 7853d5d839629d86ff4691f50bb441ef7d002b01 (diff) | |
download | src-b601f693db5d48359c5e28f498c379b968cca7c3.tar.gz src-b601f693db5d48359c5e28f498c379b968cca7c3.zip |
Format string paranoia
Obtained from: OpenBSD
Notes
Notes:
svn path=/head/; revision=68894
Diffstat (limited to 'libexec/rbootd')
-rw-r--r-- | libexec/rbootd/rbootd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |