]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
Fix worldmessage string truncation
[xonotic/darkplaces.git] / sv_main.c
index 8dad80edb2893d46ee50fe21c9382567a81502f8..65ba374dc84ffe15bd195b1d5ae8026351dd8679 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -2091,9 +2091,8 @@ void SV_SpawnServer (const char *map)
                }
        }
 
-       // update the map title cvar
-       dp_strlcpy(sv.worldmessage, PRVM_GetString(prog, PRVM_serveredictstring(prog->edicts, message)), sizeof(sv.worldmessage)); // map title (not related to filename)
-       Cvar_SetQuick(&sv_worldmessage, sv.worldmessage);
+       // update the map title cvar (not related to filename)
+       Cvar_SetQuick(&sv_worldmessage, PRVM_GetString(prog, PRVM_serveredictstring(prog->edicts, message)));
 
        Con_Printf("Server spawned.\n");
        NetConn_Heartbeat (2);