Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2010-09-24 06:36:26 +0000 (Fri, 24 Sep 2010)
Merge from trunk: Tolerate irregular whitespace in command lines.
--- branches/R2_14/Src/MergeCmdLineInfo.cpp 2010-09-24 06:25:00 UTC (rev 7278)
+++ branches/R2_14/Src/MergeCmdLineInfo.cpp 2010-09-24 06:36:26 UTC (rev 7279)
@@ -50,9 +50,21 @@
LPCTSTR MergeCmdLineInfo::EatParam(LPCTSTR p, String ¶m, bool *flag)
- if (p && *(p += StrSpn(p, _T(" \t\r\n"))) == '\0')
+ if (p && *(p += StrSpn(p, _T(" \t\r\n"))) == _T('\0'))
p = 0;
- LPCTSTR q = PathGetArgs(p);
+ LPCTSTR q = p;
+ if (q)
+ TCHAR c = *q;
+ bool quoted = false;
+ if (c == _T('"'))
+ quoted = !quoted;
+ c = *++q;
+ } while (c != _T('\0') && (quoted ||
+ c != _T(' ') && c != _T('\t') && c != _T('\r') && c != _T('\n')));
if (q > p && flag)
if (*p == _T('-') || *p == _T('/'))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: