]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add a missing cast
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 May 2009 18:00:00 +0000 (18:00 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 16 May 2009 18:00:00 +0000 (18:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8970 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index 23121a29285dbc513074055a5ced960cf39d4768..5c0963777491cf54105da0f7f198089ffa2034dc 100644 (file)
@@ -1008,7 +1008,7 @@ void Host_Name_f (void)
                Cvar_Set ("_cl_name", newName);
                if (strlen(newNameSource) >= sizeof(newName)) // overflowed
                {
-                       Con_Printf("Your name is longer than %i chars! It has been truncated.\n", sizeof(newName) - 1);
+                       Con_Printf("Your name is longer than %i chars! It has been truncated.\n", (int) (sizeof(newName) - 1));
                        Con_Printf("name: %s\n", cl_name.string);
                }
                return;