Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad format

strings from being passed to syslog(3).
This commit is contained in:
Matt Kraai 2000-12-07 16:22:04 +00:00
parent 87afb526b5
commit 7b5c16ebe5
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv)
}
openlog(name, option, (pri | LOG_FACMASK));
syslog(pri, message);
syslog(pri, "%s", message);
closelog();
return EXIT_SUCCESS;

View File

@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv)
}
openlog(name, option, (pri | LOG_FACMASK));
syslog(pri, message);
syslog(pri, "%s", message);
closelog();
return EXIT_SUCCESS;