https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201725

            Bug ID: 201725
           Summary: lib/libc/gen/syslog.3: missing priority argument in
                    example code in BUGS section.
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Documentation
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 159029
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=159029&action=edit
syslog.3.patch

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:

  syslog("%s", string);

The example lacks the first int argument (the priority). The attached patch
adds the missing 'priority' argument to the example code.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"

Reply via email to