[Bug 201725] lib/libc/gen/syslog.3: missing priority argument in example code in BUGS section.
    bugzilla-noreply at freebsd.org 
    bugzilla-noreply at freebsd.org
       
    Mon Jul 20 20:52:48 UTC 2015
    
    
  
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: freebsd-doc at FreeBSD.org
          Reporter: linuxgeek at gmail.com
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.
    
    
More information about the freebsd-doc
mailing list