From a75c71299b137ce09567c634035d352259b35c1e Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 8 Dec 2005 11:45:33 +0000 Subject: [PATCH] * fix incorrect array sizing --HG-- extra : convert_revision : e1322d52370db709625e024975f7c97fb8ed58c7 --- svr-chansession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }