Merge branch 'fix-overflow-scrolling-background' into 'next'

Fix buffer overflow when displaying a scrolling background

See merge request STJr/SRB2!2010
This commit is contained in:
sphere 2023-09-20 16:10:56 +00:00
commit a373d96d07

View file

@ -2752,6 +2752,7 @@ void M_SetMenuCurBackground(const char *defaultname)
{
char name[9];
strncpy(name, defaultname, 8);
name[8] = '\0';
M_IterateMenuTree(MIT_SetCurBackground, &name);
}