summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/info.c3
1 files changed, 2 insertions, 1 deletions
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;