]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix alias word combining
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Jan 2011 18:12:24 +0000 (18:12 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Jan 2011 18:12:24 +0000 (18:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10703 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index cbff83aa2f063312760a3bafa1c1963467018ecc..3fb741e0a3d6ba10380caade324fa99df721fe3e 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -652,11 +652,11 @@ static void Cmd_Alias_f (void)
 // copy the rest of the command line
        cmd[0] = 0;             // start out with a null string
        c = Cmd_Argc();
-       for (i=2 ; i< c ; i++)
+       for (i=2 ; i < c ; i++)
        {
-               strlcat (cmd, Cmd_Argv(i), sizeof (cmd));
-               if (i != c)
+               if (i != 2)
                        strlcat (cmd, " ", sizeof (cmd));
+               strlcat (cmd, Cmd_Argv(i), sizeof (cmd));
        }
        strlcat (cmd, "\n", sizeof (cmd));