diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-01-30 21:31:20 +0100 |
---|---|---|
committer | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-01-30 21:31:20 +0100 |
commit | 033c8989c28384529fef72e0e8e17e824ceac8d4 (patch) | |
tree | b5d45cea23a50f0ff453684cb20d5fed5fef8bf1 /NorthstarDedicatedTest/configurables.cpp | |
parent | 7e338fac5c15a3cd6efdd570a93e6d8586856143 (diff) | |
download | NorthstarLauncher-033c8989c28384529fef72e0e8e17e824ceac8d4.tar.gz NorthstarLauncher-033c8989c28384529fef72e0e8e17e824ceac8d4.zip |
replaced strcmp with strncmp because gecko complained
>:(
Diffstat (limited to 'NorthstarDedicatedTest/configurables.cpp')
-rw-r--r-- | NorthstarDedicatedTest/configurables.cpp | 2 |
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); |