Format string paranoia

Obtained from:	OpenBSD
This commit is contained in:
Kris Kennaway 2000-11-19 10:52:10 +00:00
parent 7853d5d839
commit b601f693db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68894

View File

@ -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);
}
}