Module Name:    src
Committed By:   bouyer
Date:           Sun Oct 20 14:02:51 UTC 2013

Modified Files:
        src/common/lib/libc/sys [netbsd-5]: cpuset.c

Log Message:
Pull up following revision(s) (requested by dholland in ticket #1883):
        common/lib/libc/sys/cpuset.c: revision 1.16
_cpuset_create: initialize size argument for sysctl call.
>From PR/43837 by Sandy Snaman.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.4.1 src/common/lib/libc/sys/cpuset.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/sys/cpuset.c
diff -u src/common/lib/libc/sys/cpuset.c:1.12 src/common/lib/libc/sys/cpuset.c:1.12.4.1
--- src/common/lib/libc/sys/cpuset.c:1.12	Sun Jul 27 05:47:56 2008
+++ src/common/lib/libc/sys/cpuset.c	Sun Oct 20 14:02:51 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpuset.c,v 1.12 2008/07/27 05:47:56 dholland Exp $	*/
+/*	$NetBSD: cpuset.c,v 1.12.4.1 2013/10/20 14:02:51 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #ifndef _STANDALONE
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: cpuset.c,v 1.12 2008/07/27 05:47:56 dholland Exp $");
+__RCSID("$NetBSD: cpuset.c,v 1.12.4.1 2013/10/20 14:02:51 bouyer Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/param.h>
@@ -141,6 +141,7 @@ _cpuset_create(void)
 		size_t len;
 		u_int nc;
 
+		len = sizeof(nc);
 		if (sysctl(mib, __arraycount(mib), &nc, &len, NULL, 0) == -1)
 			return NULL;
 

Reply via email to