mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-19 02:22:01 +00:00
cmd.c (Cmd_Alias_f): replace another occasion of Z_Malloc() + strcpy() by Z_Strdup().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@339 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
9721e1aa39
commit
705ef5855b
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