mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
8024ffd5dd
commit
ece77629ad
1 changed files with 1 additions and 2 deletions
|
@ -355,8 +355,7 @@ void Cmd_Alias_f (void)
|
|||
}
|
||||
strcat (cmd, "\n");
|
||||
|
||||
a->value = (char *) Z_Malloc (strlen(cmd)+1);
|
||||
strcpy (a->value, cmd);
|
||||
a->value = Z_Strdup (cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue