diff --git a/engine/server/sv_ccmds.c b/engine/server/sv_ccmds.c index 29a4ab6ca..826ceb338 100644 --- a/engine/server/sv_ccmds.c +++ b/engine/server/sv_ccmds.c @@ -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);