fixed renameclient (rid#1258749)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1381 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-09-27 05:53:31 +00:00
parent 5f55ba34bf
commit 9170900726

View file

@ -696,7 +696,7 @@ void SV_ForceName_f (void)
{
Info_SetValueForKey(cl->userinfo, "name", Cmd_Argv(2), MAX_INFO_STRING);
SV_ExtractFromUserinfo(cl);
Q_strncpyz(cl->name, Cmd_Argv(2), sizeof(cl->name));
Q_strncpyz(cl->name, Cmd_Argv(2), sizeof(cl->namebuf));
i = cl - svs.clients;
MSG_WriteByte (&sv.reliable_datagram, svc_setinfo);
MSG_WriteByte (&sv.reliable_datagram, i);