Use COM_ImmedExecute to load the config, so the buffer size doesn't matter

This commit is contained in:
James R 2020-05-04 12:19:53 -07:00
parent aa948b1de3
commit 67c355e571

View file

@ -717,8 +717,7 @@ static void COM_Exec_f(void)
CONS_Printf(M_GetText("executing %s\n"), COM_Argv(1)); CONS_Printf(M_GetText("executing %s\n"), COM_Argv(1));
// insert text file into the command buffer // insert text file into the command buffer
COM_BufAddText((char *)buf); COM_ImmedExecute((char *)buf);
COM_BufAddText("\n");
// free buffer // free buffer
Z_Free(buf); Z_Free(buf);