2
0
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:
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;
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))

View File

@ -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))