diff --git a/source/common/audio/sound/s_environment.cpp b/source/common/audio/sound/s_environment.cpp index 7a2dbd9a5..5b4ea79f1 100644 --- a/source/common/audio/sound/s_environment.cpp +++ b/source/common/audio/sound/s_environment.cpp @@ -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 (); diff --git a/source/common/utility/cmdlib.cpp b/source/common/utility/cmdlib.cpp index b8c140453..9bb06fb38 100644 --- a/source/common/utility/cmdlib.cpp +++ b/source/common/utility/cmdlib.cpp @@ -831,7 +831,7 @@ FString ExpandEnvVars(const char *searchpathstring) if (length != 0) { FString varname = FString(dollar + 1, length); - if (varname.Compare("progdir") == 0) + if (varname.CompareNoCase("progdir") == 0) { out += progdir; }