summaryrefslogtreecommitdiff
path: root/lib/libkvm
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-06-24 21:06:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-06-24 21:06:48 +0000
commit870c1d6d560c7051c8889abaee90a813c3b77ddd (patch)
tree22d93bc7e11f9c8be7f1fef713ae89275834a58d /lib/libkvm
parent6d3c4fb364133f93e1c5ee2f8146f7269c9f9350 (diff)
Back out part of last commit; we want to realloc + loop for argv too.
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c
index c2918404b03..9ca4a9a4076 100644
--- a/lib/libkvm/kvm_proc.c
+++ b/lib/libkvm/kvm_proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_proc.c,v 1.25 2004/06/24 18:19:25 millert Exp $ */
+/* $OpenBSD: kvm_proc.c,v 1.26 2004/06/24 21:06:47 millert Exp $ */
/* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
#if 0
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
#else
-static char *rcsid = "$OpenBSD: kvm_proc.c,v 1.25 2004/06/24 18:19:25 millert Exp $";
+static char *rcsid = "$OpenBSD: kvm_proc.c,v 1.26 2004/06/24 21:06:47 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -922,7 +922,7 @@ again:
len = orglen;
ret = (sysctl(mib, 4, kd->argbuf, &len, NULL, 0) < 0);
- if (ret && errno == ENOMEM && env) {
+ if (ret && errno == ENOMEM) {
orglen *= 2;
buf = _kvm_realloc(kd, kd->argbuf, orglen);
if (buf == NULL)