Merge branch 'fix-buffer-overflow-symlinks' into 'next'

Fix buffer overflow when loading addons through symlinks

See merge request STJr/SRB2!2402
This commit is contained in:
sphere 2024-06-05 21:32:57 +00:00
commit bcd55f778d

View file

@ -2987,7 +2987,7 @@ static void pathonly(char *s)
*/
static const char *searchWad(const char *searchDir)
{
static char tempsw[256] = "";
static char tempsw[MAX_WADPATH] = "";
filestatus_t fstemp;
strcpy(tempsw, WADKEYWORD1);