summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-12-08 11:45:33 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-12-08 11:45:33 +0000
commita75c71299b137ce09567c634035d352259b35c1e (patch)
tree60a317d0497d31ea39fc2e376a4ca7f4c85be8d2 /svr-chansession.c
parent187a7dcfdc3df6134b27278528b01c93f46370e6 (diff)
* fix incorrect array sizing
--HG-- extra : convert_revision : e1322d52370db709625e024975f7c97fb8ed58c7
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index 5ddb8d4..03ac40a 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -810,7 +810,7 @@ static void addchildpid(struct ChanSess *chansess, pid_t pid) {
/* need to increase size */
if (i == svr_ses.childpidsize) {
svr_ses.childpids = (struct ChildPid*)m_realloc(svr_ses.childpids,
- sizeof(struct ChildPid) * svr_ses.childpidsize+1);
+ sizeof(struct ChildPid) * (svr_ses.childpidsize+1));
svr_ses.childpidsize++;
}