use copystring instead of strdup when reading environments.

The mismatched the underlying code which allocates via copystring.
This commit is contained in:
Christoph Oelckers 2023-10-08 11:54:14 +02:00
parent 4f5df7b9ef
commit ac646e96be

View file

@ -538,7 +538,7 @@ void S_ReadReverbDef (FScanner &sc)
while (sc.GetString ())
{
name = strdup (sc.String);
name = copystring(sc.String);
sc.MustGetNumber ();
id1 = sc.Number;
sc.MustGetNumber ();