From d0dd329a8223c99ba84d70a59db3e977ca34e86e Mon Sep 17 00:00:00 2001 From: Hanicef Date: Sat, 23 Mar 2024 13:01:21 +0100 Subject: [PATCH] Fix buffer overflow when loading addons through symlinks --- src/sdl/i_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 2d051888d..e151734f8 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -2976,7 +2976,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);