Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen When creating the descriptions for the "user" n...



details:   https://anonhg.NetBSD.org/src/rev/6858813bda5d
branches:  trunk
changeset: 329247:6858813bda5d
user:      martin <martin%NetBSD.org@localhost>
date:      Fri May 16 09:41:42 2014 +0000

description:
When creating the descriptions for the "user" node, advance the output
pointer properly.

diffstat:

 lib/libc/gen/sysctl.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 047f25664c8d -r 6858813bda5d lib/libc/gen/sysctl.c
--- a/lib/libc/gen/sysctl.c     Fri May 16 09:36:51 2014 +0000
+++ b/lib/libc/gen/sysctl.c     Fri May 16 09:41:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.32 2012/03/20 16:36:05 matt Exp $ */
+/*     $NetBSD: sysctl.c,v 1.33 2014/05/16 09:41:42 martin Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.2 (Berkeley) 1/4/94";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.32 2012/03/20 16:36:05 matt Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.33 2014/05/16 09:41:42 martin Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -324,6 +324,7 @@
                        if (d2 != NULL)
                                memcpy(d2, d1, d);
                        sz += d;
+                       d2 = (struct sysctldesc *)((char *)d2 + d);
                        if (node != NULL)
                                break;
                }



Home | Main Index | Thread Index | Old Index