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:
sezero 2011-12-13 18:35:40 +00:00
parent b5e377b01b
commit e6f6e24cab

View file

@ -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++;
}
}