From 3aef45d35bab536aaf3ad1ea040b70ea3f0612c0 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 6 Oct 2010 16:03:47 +0000 Subject: Solved reentrancy problem in commandqueue --- tools/mhmake/src/mhmakefileparser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/mhmake/src/mhmakefileparser.cpp') diff --git a/tools/mhmake/src/mhmakefileparser.cpp b/tools/mhmake/src/mhmakefileparser.cpp index 725312b61..5236d58ee 100644 --- a/tools/mhmake/src/mhmakefileparser.cpp +++ b/tools/mhmake/src/mhmakefileparser.cpp @@ -928,7 +928,7 @@ void mhmakefileparser::SetExport(const string &Var, const string &Val) { while (*pEnd++); } - int Len=pEnd-pEnv+1; + size_t Len=pEnd-pEnv+1; m_pEnv=(char*)malloc(Len); memcpy(m_pEnv,pEnv,Len); m_EnvLen=Len; @@ -964,9 +964,9 @@ void mhmakefileparser::SetExport(const string &Var, const string &Val) } while (*pEnv++); } - int VarLen=Var.length(); - int ValLen=Val.length(); - int Extra=VarLen+ValLen+2; + size_t VarLen=Var.length(); + size_t ValLen=Val.length(); + size_t Extra=VarLen+ValLen+2; /* Add the variable at the end */ m_pEnv=(char*)realloc(m_pEnv,m_EnvLen+Extra); pEnv=m_pEnv+m_EnvLen-1; -- cgit v1.2.3