2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-02-05 02:00:34 +03:00

Cmd_Alias_f: fix

This commit is contained in:
s1lentq 2021-05-03 00:35:51 +07:00
parent ee986f7c62
commit 80c40ce0c0

View File

@ -501,7 +501,7 @@ void Cmd_Alias_f(void)
// Gather arguments into one string
cmd[0] = 0;
c = Cmd_Argc();
for (i = 2; i <= c; i++)
for (i = 2; i < c; i++)
{
Q_strncat(cmd, Cmd_Argv(i), MAX_CMD_LINE - 2 - Q_strlen(cmd)); // always have a space for \n or ' ' and \0