diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-01-24 02:29:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 02:29:20 +0100 |
commit | 3b7d9aaa95449a66be36a057aa49e35bcb8acec6 (patch) | |
tree | 2c772ba10530356a7bb4482fe61e207667081fc2 /primedev/wsockproxy | |
parent | efff77f0941df9b6502f6c66a621c1c41a0d1e25 (diff) | |
parent | 7f84bdf8fd5c93286f000bc5f9314eab81128cee (diff) | |
download | NorthstarLauncher-3b7d9aaa95449a66be36a057aa49e35bcb8acec6.tar.gz NorthstarLauncher-3b7d9aaa95449a66be36a057aa49e35bcb8acec6.zip |
Merge branch 'main' into feat/update-for-new-verified-json
Diffstat (limited to 'primedev/wsockproxy')
-rw-r--r-- | primedev/wsockproxy/loader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/primedev/wsockproxy/loader.cpp b/primedev/wsockproxy/loader.cpp index 3e46c1a6..0a299ba8 100644 --- a/primedev/wsockproxy/loader.cpp +++ b/primedev/wsockproxy/loader.cpp @@ -54,7 +54,7 @@ bool LoadNorthstar() std::string cla = std::string(clachar); if (strncmp(cla.substr(9, 1).c_str(), "\"", 1)) { - int space = cla.find(" "); + size_t space = cla.find(" "); std::string dirname = cla.substr(9, space - 9); std::cout << "[*] Found profile in command line arguments: " << dirname << std::endl; strProfile = dirname.c_str(); @@ -62,8 +62,8 @@ bool LoadNorthstar() else { std::string quote = "\""; - int quote1 = cla.find(quote); - int quote2 = (cla.substr(quote1 + 1)).find(quote); + size_t quote1 = cla.find(quote); + size_t quote2 = (cla.substr(quote1 + 1)).find(quote); std::string dirname = cla.substr(quote1 + 1, quote2); std::cout << "[*] Found profile in command line arguments: " << dirname << std::endl; strProfile = dirname; |