]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix latest commit :P
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 May 2009 17:54:17 +0000 (17:54 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 May 2009 17:54:17 +0000 (17:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8968 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index ea1235ad23c5834462e15f0b819967da9f1e6a7e..341026ce2e0258fb2e11bea4705171dff35c3a4d 100644 (file)
@@ -1001,9 +1001,10 @@ void Host_Name_f (void)
        else
                newNameSource = Cmd_Args();
 
+       strlcpy(newName, newNameSource, sizeof(newName));
+
        if (cmd_source == src_command)
        {
-               strlcpy(newName, newNameSource, sizeof(newName));
                Cvar_Set ("_cl_name", newName);
                if (strlen(newNameSource) >= sizeof(newName)) // overflowed
                {