2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-02-27 05:51:10 +03:00

ExecuteString: Fix parser Closes #821

This commit is contained in:
s1lentq 2021-03-22 23:56:12 +07:00
parent ce0bfa11ab
commit 42fd0fadfa
2 changed files with 4 additions and 2 deletions

View File

@ -173,7 +173,7 @@ void System::ExecuteString(const char *commands)
unsigned int i; unsigned int i;
for (i = 0; i < ARRAYSIZE(singleCmd); i++) for (i = 0; i < ARRAYSIZE(singleCmd); i++)
{ {
const char c = *pszSource++; const char c = *pszSource;
if (c == '"') if (c == '"')
{ {
@ -186,6 +186,7 @@ void System::ExecuteString(const char *commands)
} }
*pszDest++ = c; *pszDest++ = c;
pszSource++;
} }
if (i >= ARRAYSIZE(singleCmd)) if (i >= ARRAYSIZE(singleCmd))

View File

@ -572,7 +572,7 @@ void SystemWrapper::ExecuteString(const char *commands)
unsigned int i; unsigned int i;
for (i = 0; i < ARRAYSIZE(singleCmd); i++) for (i = 0; i < ARRAYSIZE(singleCmd); i++)
{ {
const char c = *pszSource++; const char c = *pszSource;
if (c == '"') if (c == '"')
{ {
@ -585,6 +585,7 @@ void SystemWrapper::ExecuteString(const char *commands)
} }
*pszDest++ = c; *pszDest++ = c;
pszSource++;
} }
if (i >= ARRAYSIZE(singleCmd)) if (i >= ARRAYSIZE(singleCmd))