Skip to content
Snippets Groups Projects
Commit a75c7129 authored by Matt Johnston's avatar Matt Johnston
Browse files

* fix incorrect array sizing

--HG--
extra : convert_revision : e1322d52370db709625e024975f7c97fb8ed58c7
parent 187a7dcf
Branches
Tags
No related merge requests found
......@@ -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++;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment