aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/configurables.cpp
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-01-30 21:31:20 +0100
committerEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-01-30 21:31:20 +0100
commit033c8989c28384529fef72e0e8e17e824ceac8d4 (patch)
treeb5d45cea23a50f0ff453684cb20d5fed5fef8bf1 /NorthstarDedicatedTest/configurables.cpp
parent7e338fac5c15a3cd6efdd570a93e6d8586856143 (diff)
downloadNorthstarLauncher-033c8989c28384529fef72e0e8e17e824ceac8d4.tar.gz
NorthstarLauncher-033c8989c28384529fef72e0e8e17e824ceac8d4.zip
replaced strcmp with strncmp because gecko complained
>:(
Diffstat (limited to 'NorthstarDedicatedTest/configurables.cpp')
-rw-r--r--NorthstarDedicatedTest/configurables.cpp2
1 files changed, 1 insertions, 1 deletions
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);