Fix buffer overflow when loading addons through symlinks

This commit is contained in:
Hanicef 2024-03-23 13:01:21 +01:00
parent 8647281a51
commit d0dd329a82

View file

@ -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);