comparison svr-chansession.c @ 264:541b14504870

* fix incorrect array sizing
author Matt Johnston <matt@ucc.asn.au>
date Thu, 08 Dec 2005 11:45:33 +0000
parents 84925eceeb13
children 3be7ae2e8dfa 02a80ce2ead4 044bc108b9b3
comparison
equal deleted inserted replaced
263:c66797d973ff 264:541b14504870
808 } 808 }
809 809
810 /* need to increase size */ 810 /* need to increase size */
811 if (i == svr_ses.childpidsize) { 811 if (i == svr_ses.childpidsize) {
812 svr_ses.childpids = (struct ChildPid*)m_realloc(svr_ses.childpids, 812 svr_ses.childpids = (struct ChildPid*)m_realloc(svr_ses.childpids,
813 sizeof(struct ChildPid) * svr_ses.childpidsize+1); 813 sizeof(struct ChildPid) * (svr_ses.childpidsize+1));
814 svr_ses.childpidsize++; 814 svr_ses.childpidsize++;
815 } 815 }
816 816
817 svr_ses.childpids[i].pid = pid; 817 svr_ses.childpids[i].pid = pid;
818 svr_ses.childpids[i].chansess = chansess; 818 svr_ses.childpids[i].chansess = chansess;