Mercurial > dropbear
changeset 264:541b14504870
* fix incorrect array sizing
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 08 Dec 2005 11:45:33 +0000 |
parents | c66797d973ff |
children | 9b9664204b97 |
files | svr-chansession.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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++; }