diff 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
line wrap: on
line diff
--- a/svr-chansession.c	Thu Dec 08 08:17:42 2005 +0000
+++ b/svr-chansession.c	Thu Dec 08 11:45:33 2005 +0000
@@ -810,7 +810,7 @@
 	/* 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++;
 	}