summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-22 21:09:08 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-22 21:09:08 +0000
commit79e25d0d74e2a45885eb762c554817102e7772c5 (patch)
tree28ba2baae63e1c72106043ee19a4d66e304d695a /proc
parentdb550b76bd7185662c4d341a5cf590942e803abb (diff)
Formerly info.c.~8~
Diffstat (limited to 'proc')
-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;