diff options
-rw-r--r-- | proc/info.c | 4 | ||||
-rw-r--r-- | proc/mgt.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/proc/info.c b/proc/info.c index 6761314c..4f33a68c 100644 --- a/proc/info.c +++ b/proc/info.c @@ -334,7 +334,7 @@ S_proc_getprocinfo (struct proc *callerp, if (structsize / sizeof (int) > *piarraylen) { - vm_allocate (mach_task_self (), (u_int *)&piarray, structsize, 1); + vm_allocate (mach_task_self (), (u_int *)piarray, structsize, 1); didalloc = 1; } *piarraylen = structsize / sizeof (int); @@ -414,7 +414,7 @@ S_proc_getprocinfo (struct proc *callerp, vm_deallocate (mach_task_self (), (u_int )thds, nthreads * sizeof (thread_t)); if (err && didalloc) - vm_deallocate (mach_task_self (), (u_int) piarray, structsize); + vm_deallocate (mach_task_self (), (u_int) *piarray, structsize); return err; } @@ -418,7 +418,7 @@ S_proc_getallpids (struct proc *p, prociterate (count_up, &nprocs); if (nprocs > *pidslen) - vm_allocate (mach_task_self (), (vm_address_t *) *pids, + vm_allocate (mach_task_self (), (vm_address_t *) pids, nprocs * sizeof (pid_t), 1); loc = *pids; |