From 033c8989c28384529fef72e0e8e17e824ceac8d4 Mon Sep 17 00:00:00 2001 From: Emma Miler <27428383+emma-miler@users.noreply.github.com> Date: Sun, 30 Jan 2022 21:31:20 +0100 Subject: replaced strcmp with strncmp because gecko complained >:( --- NorthstarDedicatedTest/configurables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NorthstarDedicatedTest') diff --git a/NorthstarDedicatedTest/configurables.cpp b/NorthstarDedicatedTest/configurables.cpp index 1ed345ef..7096b2e9 100644 --- a/NorthstarDedicatedTest/configurables.cpp +++ b/NorthstarDedicatedTest/configurables.cpp @@ -10,7 +10,7 @@ void parseConfigurables() { char* clachar = strstr(GetCommandLineA(), "-profile="); if (clachar) { std::string cla = std::string(clachar); - if (strcmp(cla.substr(9, 1).c_str(), "\"")) { + if (strncmp(cla.substr(9, 1).c_str(), "\"", 1)) { int space = cla.find(" "); std::string dirname = cla.substr(9, space - 9); spdlog::info("Found profile in command line arguments: " + dirname); -- cgit v1.2.3