summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/info.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/proc/info.c b/proc/info.c
index e16ed890..063434d1 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -336,9 +336,8 @@ S_proc_getprocinfo (struct proc *callerp,
else
nthreads = 0;
- structsize = (sizeof (struct procinfo)
- + nthreads * sizeof (struct thread_basic_info)
- + nthreads * sizeof (struct thread_sched_info));
+ structsize =
+ sizeof (struct procinfo) + nthreads * sizeof (pi->threadinfos[0]);
if (structsize / sizeof (int) > *piarraylen)
{