mirror of
https://github.com/rehlds/rehlds.git
synced 2025-02-26 21:41:06 +03:00
ExecuteString: Fix parser Closes #821
This commit is contained in:
parent
ce0bfa11ab
commit
42fd0fadfa
@ -173,7 +173,7 @@ void System::ExecuteString(const char *commands)
|
||||
unsigned int i;
|
||||
for (i = 0; i < ARRAYSIZE(singleCmd); i++)
|
||||
{
|
||||
const char c = *pszSource++;
|
||||
const char c = *pszSource;
|
||||
|
||||
if (c == '"')
|
||||
{
|
||||
@ -186,6 +186,7 @@ void System::ExecuteString(const char *commands)
|
||||
}
|
||||
|
||||
*pszDest++ = c;
|
||||
pszSource++;
|
||||
}
|
||||
|
||||
if (i >= ARRAYSIZE(singleCmd))
|
||||
|
@ -572,7 +572,7 @@ void SystemWrapper::ExecuteString(const char *commands)
|
||||
unsigned int i;
|
||||
for (i = 0; i < ARRAYSIZE(singleCmd); i++)
|
||||
{
|
||||
const char c = *pszSource++;
|
||||
const char c = *pszSource;
|
||||
|
||||
if (c == '"')
|
||||
{
|
||||
@ -585,6 +585,7 @@ void SystemWrapper::ExecuteString(const char *commands)
|
||||
}
|
||||
|
||||
*pszDest++ = c;
|
||||
pszSource++;
|
||||
}
|
||||
|
||||
if (i >= ARRAYSIZE(singleCmd))
|
||||
|
Loading…
x
Reference in New Issue
Block a user