diff options
author | marha <marha@users.sourceforge.net> | 2009-08-04 13:58:23 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-08-04 13:58:23 +0000 |
commit | 392f542ca74be7b3721e7a4af75544a39e0eceae (patch) | |
tree | 39e7d8d5625c8563de18bfd882543910ca69af84 /tools/mhmake/src/util.cpp | |
parent | a1c52b0d76b73151014d62f920a73df8097563e9 (diff) | |
download | vcxsrv-392f542ca74be7b3721e7a4af75544a39e0eceae.tar.gz vcxsrv-392f542ca74be7b3721e7a4af75544a39e0eceae.tar.bz2 vcxsrv-392f542ca74be7b3721e7a4af75544a39e0eceae.zip |
Escaping of the $ sign by doubling it was not always done correctly.
Diffstat (limited to 'tools/mhmake/src/util.cpp')
-rw-r--r-- | tools/mhmake/src/util.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/mhmake/src/util.cpp b/tools/mhmake/src/util.cpp index 824c94b4d..be0e92281 100644 --- a/tools/mhmake/src/util.cpp +++ b/tools/mhmake/src/util.cpp @@ -274,24 +274,24 @@ loadedmakefile::loadedmakefile_statics::loadedmakefile_statics() string Output;
bool Ret;
try
- {
+ {
string SvnCommand=SearchCommand("svn",EXEEXT);
Ret=OsExeCommand(SvnCommand,string(" info ")+m_MhMakeConf->GetFullFileName(),false,&Output);
- }
+ }
catch (int)
- {
+ {
Ret=false;
- }
+ }
char *pTok=strtok((char*)Output.c_str(),"\n"); // doing this is changing string, so this is very dangerous !!!
while (pTok)
- {
+ {
if (!strncmp(pTok,"URL: ",5))
- {
+ {
m_GlobalCommandLineVars[WC_URL]=pTok+5+7;
- }
+ }
else if (!strncmp(pTok,"Revision: ",10))
- {
+ {
m_GlobalCommandLineVars[WC_REVISION]=pTok+10;
break;
}
|