From e21029567d1f5b8576487c6b3183bde2f6a96d89 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 16 May 2009 17:54:17 +0000 Subject: [PATCH] fix latest commit :P git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8968 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host_cmd.c b/host_cmd.c index ea1235ad..341026ce 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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 { -- 2.39.2