mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Purge control characters from COM_Args
This commit is contained in:
parent
58f07987f9
commit
a2493bb9db
1 changed files with 2 additions and 1 deletions
|
|
@ -479,6 +479,7 @@ static void COM_TokenizeString(char *ptext)
|
||||||
Z_Free(com_argv[i]);
|
Z_Free(com_argv[i]);
|
||||||
|
|
||||||
com_argc = 0;
|
com_argc = 0;
|
||||||
|
Z_Free(com_args);
|
||||||
com_args = NULL;
|
com_args = NULL;
|
||||||
com_flags = 0;
|
com_flags = 0;
|
||||||
|
|
||||||
|
|
@ -502,7 +503,7 @@ static void COM_TokenizeString(char *ptext)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (com_argc == 1)
|
if (com_argc == 1)
|
||||||
com_args = ptext;
|
com_args = COM_Purge(Z_StrDup(ptext), NULL);
|
||||||
|
|
||||||
ptext = COM_Parse(ptext);
|
ptext = COM_Parse(ptext);
|
||||||
if (ptext == NULL)
|
if (ptext == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue