From afdb6051302c4d17312a806cd34c05e4eb8e4944 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Sat, 17 Oct 2020 03:33:41 +0100 Subject: [PATCH] Make sure configs are \n terminated, so can't merge with whatever command came after the exec command. --- Quake/cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Quake/cmd.c b/Quake/cmd.c index 30e6ed05..f935be93 100644 --- a/Quake/cmd.c +++ b/Quake/cmd.c @@ -293,6 +293,7 @@ void Cmd_Exec_f (void) if (cmd_warncmd.value) Con_Printf ("execing %s\n",Cmd_Argv(1)); + Cbuf_InsertText ("\n"); //just in case there was no trailing \n. Cbuf_InsertText (f); Hunk_FreeToLowMark (mark); }