Skip to content

Commit

Permalink
use copystring instead of strdup when reading environments.
Browse files Browse the repository at this point in the history
The mismatched the underlying code which allocates via copystring.
  • Loading branch information
coelckers committed Oct 11, 2023
1 parent fe6decd commit 624d4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/audio/sound/s_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 624d4cd

Please sign in to comment.