From 810077aff6c99517dbd4e112d1f5f184745d1a33 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 10 May 2010 06:54:13 +0000 Subject: [PATCH] fix compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10186 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_parse.c b/cl_parse.c index 93b8837d..a0d340b2 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -452,7 +452,7 @@ static void CL_SetupWorldModel(void) { strlcpy(cl.worldname, cl.worldmodel->name, sizeof(cl.worldname)); FS_StripExtension(cl.worldname, cl.worldnamenoextension, sizeof(cl.worldnamenoextension)); - strlcpy(cl.worldbasename, !strncmp(cl.worldnamenoextension, "maps/") ? cl.worldnamenoextension + 4 : cl.worldnamenoextension, sizeof(cl.worldbasename)); + strlcpy(cl.worldbasename, !strncmp(cl.worldnamenoextension, "maps/", 5) ? cl.worldnamenoextension + 4 : cl.worldnamenoextension, sizeof(cl.worldbasename)); Cvar_SetQuick(&cl_worldmessage, cl.worldmessage); Cvar_SetQuick(&cl_worldname, cl.worldname); Cvar_SetQuick(&cl_worldnamenoextension, cl.worldnamenoextension); -- 2.39.2