mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 00:50:38 +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");
|
strcat (cmd, "\n");
|
||||||
|
|
||||||
a->value = (char *) Z_Malloc (strlen(cmd)+1);
|
a->value = Z_Strdup (cmd);
|
||||||
strcpy (a->value, cmd);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue