cmd.c (Cmd_Alias_f): replace another occasion of Z_Malloc() + strcpy() by Z_Strdup().

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@339 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-10-04 07:40:12 +00:00
parent 8024ffd5dd
commit ece77629ad

View file

@ -355,8 +355,7 @@ void Cmd_Alias_f (void)
} }
strcat (cmd, "\n"); strcat (cmd, "\n");
a->value = (char *) Z_Malloc (strlen(cmd)+1); a->value = Z_Strdup (cmd);
strcpy (a->value, cmd);
break; break;
} }
} }