From: divverent Date: Sat, 16 May 2009 18:00:00 +0000 (+0000) Subject: add a missing cast X-Git-Tag: xonotic-v0.1.0preview~1648 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1da8763568794f572231831ff9c24759de9ec084;p=xonotic%2Fdarkplaces.git add a missing cast git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8970 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index 23121a29..5c096377 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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;