Created attachment 159029 [details]
The syslog function signature looks like this:
void syslog(int priority, const char *message, ...);
In the BUGS section of syslog(3), the reader is warned about formatting attacks and it is suggested that the following idiom be used:
The example lacks the first int argument (the priority). The attached patch adds the missing 'priority' argument to the example code.
A commit references this bug:
Date: Tue Jul 21 09:44:46 UTC 2015
New revision: 285739
Add missing priority argument in example code in BUGS section.
Submitted by: Thomas Cort
MFC after: 1 week
There is a commit referencing this PR, but it's still not closed and has been inactive for some time. Closing the PR as fixed but feel free to re-open it if the issue hasn't been completely resolved.