mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-23 09:41:20 +00:00
Fix buffer overflow when displaying a scrolling background
This commit is contained in:
parent
d6d424f102
commit
7c75f61be7
1 changed files with 1 additions and 0 deletions
|
@ -2807,6 +2807,7 @@ void M_SetMenuCurBackground(const char *defaultname)
|
|||
{
|
||||
char name[9];
|
||||
strncpy(name, defaultname, 8);
|
||||
name[8] = '\0';
|
||||
M_IterateMenuTree(MIT_SetCurBackground, &name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue