From 1298f17c38e557a57d5939d4ae0dd90f31139fca Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 18 Oct 2023 20:35:27 +0200 Subject: [PATCH] two minor backend fixes --- source/common/audio/sound/s_environment.cpp | 2 +- source/common/utility/cmdlib.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }