Make sure configs are \n terminated, so can't merge with whatever command came after the exec command.

This commit is contained in:
Shpoike 2020-10-17 03:33:41 +01:00
parent 34a87f4034
commit afdb605130

View file

@ -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);
}