NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/45422: don't use "null" when you mean "NUL"



>Number:         45422
>Category:       kern
>Synopsis:       don't use "null" when you mean "NUL"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 04 18:45:00 +0000 2011
>Originator:     Greg A. Woods
>Release:        NetBSD-current 2011/10/04
>Organization:
Planix, Inc.; Kelowna, BC; Canada
>Environment:
System: NetBSD
Architecture: all
Machine: all
>Description:


>How-To-Repeat:
        
>Fix:

Index: sys/kern/kern_sysctl.c
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/sys/kern/kern_sysctl.c,v
retrieving revision 1.231
diff -u -r1.231 kern_sysctl.c
--- sys/kern/kern_sysctl.c      17 Jul 2011 20:54:52 -0000      1.231
+++ sys/kern/kern_sysctl.c      4 Oct 2011 18:00:50 -0000
@@ -1574,7 +1574,7 @@
                }
 
                /*
-                * did they null terminate it, or do we have space
+                * did they NUL terminate it, or do we have space
                 * left to do it ourselves?
                 */
                if (newbuf[len - 1] != '\0' && len == sz) {



Home | Main Index | Thread Index | Old Index