mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-30 06:41:41 +00:00
Prevent a buffer overflow.
This commit is contained in:
parent
f9837b9130
commit
32fe0ba21f
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue