summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/mgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index c6e045a1..807a2d5b 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -555,7 +555,7 @@ allocate_proc (task_t task)
if (err)
return NULL;
- memset (p, 0, sizeof *p);
+ memset (&p->p_pi + 1, 0, sizeof *p - sizeof p->p_pi);
p->p_task = task;
p->p_msgport = MACH_PORT_NULL;