diff options
author | kris <kris@FreeBSD.org> | 2000-11-19 10:52:10 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-11-19 10:52:10 +0000 |
commit | 41e14b7cc1a82c2193d7b0a1ed01256cda2b6e27 (patch) | |
tree | e2fd0839b57a5105038eb393813813c9817b9918 /libexec/rbootd | |
parent | 4d2f72a2d520d4d1b0631e32e6d0c5b170b16584 (diff) | |
download | FreeBSD-src-41e14b7cc1a82c2193d7b0a1ed01256cda2b6e27.zip FreeBSD-src-41e14b7cc1a82c2193d7b0a1ed01256cda2b6e27.tar.gz |
Format string paranoia
Obtained from: OpenBSD
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 2f7c384..70bd791 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); } } |