Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sbin/sysctl Pull up revision 1.93 (requested by atatat ...
details: https://anonhg.NetBSD.org/src/rev/577f6c3dcb1a
branches: netbsd-2-0
changeset: 560544:577f6c3dcb1a
user: jdc <jdc%NetBSD.org@localhost>
date: Mon Apr 26 20:00:24 2004 +0000
description:
Pull up revision 1.93 (requested by atatat in ticket #181)
Allocate adjusted size, not fixed size.
diffstat:
sbin/sysctl/sysctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a96f9d5bd401 -r 577f6c3dcb1a sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c Mon Apr 26 19:46:10 2004 +0000
+++ b/sbin/sysctl/sysctl.c Mon Apr 26 20:00:24 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.86.2.8 2004/04/22 07:52:03 tron Exp $ */
+/* $NetBSD: sysctl.c,v 1.86.2.9 2004/04/26 20:00:24 jdc Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: sysctl.c,v 1.86.2.8 2004/04/22 07:52:03 tron Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.86.2.9 2004/04/26 20:00:24 jdc Exp $");
#endif
#endif /* not lint */
@@ -1456,7 +1456,7 @@
*/
i = 0;
do {
- d = malloc(128 * pnode->sysctl_clen);
+ d = malloc(sz);
if (d == NULL)
return;
rc = sysctl(name, namelen + 1, d, &sz, NULL, 0);
Home |
Main Index |
Thread Index |
Old Index