From 15d2f5f04f58bcace3e09677eaf9ef879e297320 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 8 Nov 2001 00:23:06 +0000 Subject: [PATCH] kern.ps_arg_max_cache is a long, not an int. I believe this is half of what broke ps on ia64. It probably also broke on alpha, but the fallback method of using lseek/read on /proc/*/mem to read ps_strings seems to work there. It doesn't on ia64 yet. --- lib/libkvm/kvm_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index 990f856ece5..e16173f6ed4 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -762,7 +762,7 @@ kvm_getargv(kd, kp, nchr) int oid[4]; int i; size_t bufsz; - static int buflen; + static unsigned long buflen; static char *buf, *p; static char **bufp; static int argc;