From 79e25d0d74e2a45885eb762c554817102e7772c5 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 22 Aug 1994 21:09:08 +0000 Subject: Formerly info.c.~8~ --- proc/info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proc') diff --git a/proc/info.c b/proc/info.c index 80ef3b88..2a546356 100644 --- a/proc/info.c +++ b/proc/info.c @@ -475,7 +475,8 @@ S_proc_getloginpids (struct proc *callerp, if (new - parray > parraysize) { struct proc **newparray; - newparray = realloc (parray, parraysize *= 2); + newparray = realloc (parray, ((parraysize *= 2) + * sizeof (struct proc *))); tail = newparray + (tail - parray); new = newparray + (new - parray); parray = newparray; -- cgit v1.2.3