diff options
author | marha <marha@users.sourceforge.net> | 2010-10-06 16:03:47 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-10-06 16:03:47 +0000 |
commit | 3aef45d35bab536aaf3ad1ea040b70ea3f0612c0 (patch) | |
tree | 6775556294b8e93515bf5813f3b85dc71a463e3c /tools/mhmake/src/build.cpp | |
parent | bfa0c2fa423efa7ece6e54d5f30bbe95ca4bfc2a (diff) | |
download | vcxsrv-3aef45d35bab536aaf3ad1ea040b70ea3f0612c0.tar.gz vcxsrv-3aef45d35bab536aaf3ad1ea040b70ea3f0612c0.tar.bz2 vcxsrv-3aef45d35bab536aaf3ad1ea040b70ea3f0612c0.zip |
Solved reentrancy problem in commandqueue
Diffstat (limited to 'tools/mhmake/src/build.cpp')
-rw-r--r-- | tools/mhmake/src/build.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mhmake/src/build.cpp b/tools/mhmake/src/build.cpp index 1d4a6ddc1..bfd5d0211 100644 --- a/tools/mhmake/src/build.cpp +++ b/tools/mhmake/src/build.cpp @@ -240,7 +240,7 @@ void mhmakefileparser::CreatePythonExe(const string &FullCommand) #endif
/*****************************************************************************/
-int mhmakefileparser::SearchPath(const char *szCommand, const char *pExt, int Len, char *szFullCommand,char **pFilePart) const
+int mhmakefileparser::SearchPath(const char *szCommand, const char *pExt, size_t Len, char *szFullCommand,char **pFilePart) const
{
static vector< refptr<fileinfo> > vSearchPath;
@@ -284,7 +284,7 @@ int mhmakefileparser::SearchPath(const char *szCommand, const char *pExt, int Le found:
string FullCommand=CommandFile->GetFullFileName();
- int CommandLen=FullCommand.size();
+ size_t CommandLen=FullCommand.size();
if (CommandLen>Len-1)
{
throw string("Command to long: ") + FullCommand;
|