aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/mhmakefileparser.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-10-06 16:03:47 +0000
committermarha <marha@users.sourceforge.net>2010-10-06 16:03:47 +0000
commit3aef45d35bab536aaf3ad1ea040b70ea3f0612c0 (patch)
tree6775556294b8e93515bf5813f3b85dc71a463e3c /tools/mhmake/src/mhmakefileparser.cpp
parentbfa0c2fa423efa7ece6e54d5f30bbe95ca4bfc2a (diff)
downloadvcxsrv-3aef45d35bab536aaf3ad1ea040b70ea3f0612c0.tar.gz
vcxsrv-3aef45d35bab536aaf3ad1ea040b70ea3f0612c0.tar.bz2
vcxsrv-3aef45d35bab536aaf3ad1ea040b70ea3f0612c0.zip
Solved reentrancy problem in commandqueue
Diffstat (limited to 'tools/mhmake/src/mhmakefileparser.cpp')
-rw-r--r--tools/mhmake/src/mhmakefileparser.cpp8
1 files changed, 4 insertions, 4 deletions
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;