Fixes molgrum's crash

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2695 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-09-27 10:48:16 +00:00
parent 31ab61b06b
commit c54e656470

View file

@ -1774,8 +1774,11 @@ void CL_Packet_f (void)
if (Cmd_FromGamecode())
{
//realip
Cmd_TokenizeString(in, false, false);
char *temp = Z_Malloc(strlen(in)+1);
strcpy(temp, in);
Cmd_TokenizeString(temp, false, false);
cls.realip_ident = atoi(Cmd_Argv(2));
Z_Free(temp);
}
}