From 9d4a938aa6754bd45770b240fb5820772ecbe8e5 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 10 May 2010 06:57:49 +0000 Subject: [PATCH] anoth'error bites the dust git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10187 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv_main.c b/sv_main.c index 69e6b065..913485b5 100644 --- a/sv_main.c +++ b/sv_main.c @@ -3172,7 +3172,7 @@ void SV_SpawnServer (const char *server) strlcpy (sv.name, server, sizeof (sv.name)); strlcpy(sv.worldname, modelname, sizeof(sv.worldname)); FS_StripExtension(sv.worldname, sv.worldnamenoextension, sizeof(sv.worldnamenoextension)); - strlcpy(sv.worldbasename, !strncmp(sv.worldnamenoextension, "maps/") ? sv.worldnamenoextension + 4 : sv.worldnamenoextension, sizeof(sv.worldbasename)); + strlcpy(sv.worldbasename, !strncmp(sv.worldnamenoextension, "maps/", 5) ? sv.worldnamenoextension + 4 : sv.worldnamenoextension, sizeof(sv.worldbasename)); //Cvar_SetQuick(&sv_worldmessage, sv.worldmessage); // set later after QC is spawned Cvar_SetQuick(&sv_worldname, sv.worldname); Cvar_SetQuick(&sv_worldnamenoextension, sv.worldnamenoextension); -- 2.39.2