diff --git a/src/client/cl_console.c b/src/client/cl_console.c index 4e976390..c7064ae9 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -124,6 +124,11 @@ void Con_Dump_f (void) { return; } + if (con.linewidth > 1024) { + Com_Printf ("con.linewidth too large!\n"); + return; + } + Com_sprintf (name, sizeof(name), "%s/%s.txt", FS_Gamedir(), Cmd_Argv(1)); Com_Printf ("Dumped console text to %s.\n", name);