mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Cmd_TokenizeString: simplify duplication by using Z_Strdup()
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@514 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
b5e377b01b
commit
e6f6e24cab
1 changed files with 1 additions and 2 deletions
|
@ -582,8 +582,7 @@ void Cmd_TokenizeString (const char *text)
|
|||
|
||||
if (cmd_argc < MAX_ARGS)
|
||||
{
|
||||
cmd_argv[cmd_argc] = (char *) Z_Malloc (Q_strlen(com_token)+1);
|
||||
Q_strcpy (cmd_argv[cmd_argc], com_token);
|
||||
cmd_argv[cmd_argc] = Z_Strdup (com_token);
|
||||
cmd_argc++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue