diff options
author | marha <marha@users.sourceforge.net> | 2011-03-08 09:36:48 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-03-08 09:36:48 +0000 |
commit | c5bfd1aa030085abb89a8f13ecc4d36bb0227d1d (patch) | |
tree | 262aaf6f94fb5618720d9f3d3c877f63e16a16a6 /tools/mhmake/src/util.cpp | |
parent | 6272d6626e095565120b55d77ab6c1c84d269a81 (diff) | |
download | vcxsrv-c5bfd1aa030085abb89a8f13ecc4d36bb0227d1d.tar.gz vcxsrv-c5bfd1aa030085abb89a8f13ecc4d36bb0227d1d.tar.bz2 vcxsrv-c5bfd1aa030085abb89a8f13ecc4d36bb0227d1d.zip |
Added safety agains mhmakeconf value ending in backspace
Diffstat (limited to 'tools/mhmake/src/util.cpp')
-rw-r--r-- | tools/mhmake/src/util.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/mhmake/src/util.cpp b/tools/mhmake/src/util.cpp index 8b7d2b164..2ff5a03f3 100644 --- a/tools/mhmake/src/util.cpp +++ b/tools/mhmake/src/util.cpp @@ -341,9 +341,8 @@ loadedmakefile::loadedmakefile_statics::loadedmakefile_statics() const char *pEnv=getenv(MHMAKECONF);
if (pEnv)
{
- string Env(QuoteFileName(pEnv));
- m_GlobalCommandLineVars[MHMAKECONF]=Env;
- m_MhMakeConf=GetAbsFileInfo(Env);
+ m_MhMakeConf=GetAbsFileInfo(pEnv);
+ m_GlobalCommandLineVars[MHMAKECONF]=QuoteFileName(m_MhMakeConf->GetFullFileName());
// Get the revision of the working copy
// We do it with the svn info command
|