* fix incorrect array sizing

--HG--
extra : convert_revision : e1322d52370db709625e024975f7c97fb8ed58c7
This commit is contained in:
Matt Johnston 2005-12-08 11:45:33 +00:00
parent 187a7dcfdc
commit a75c71299b

View File

@ -810,7 +810,7 @@ static void addchildpid(struct ChanSess *chansess, pid_t pid) {
/* need to increase size */ /* need to increase size */
if (i == svr_ses.childpidsize) { if (i == svr_ses.childpidsize) {
svr_ses.childpids = (struct ChildPid*)m_realloc(svr_ses.childpids, 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++; svr_ses.childpidsize++;
} }