mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 16:11:23 +00:00
use copystring instead of strdup when reading environments.
The mismatched the underlying code which allocates via copystring.
This commit is contained in:
parent
4f5df7b9ef
commit
ac646e96be
1 changed files with 1 additions and 1 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue