summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-31 22:06:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-31 22:06:08 +0300
commitfd7664239bffceaef2c233f74466304a4cf85aaa (patch)
treed2c0e7cbcaa10020edd8d7fbe419f0395a1fa68c /src/mir_app
parent0e6b6b3b145c58cd881aabd0dafa8803a6ba95f7 (diff)
fix for possible problem with cyrillic file names in NTLM auth
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/netlibsecurity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/netlibsecurity.cpp b/src/mir_app/src/netlibsecurity.cpp
index 86bfb51209..b30146e7ca 100644
--- a/src/mir_app/src/netlibsecurity.cpp
+++ b/src/mir_app/src/netlibsecurity.cpp
@@ -342,8 +342,8 @@ char* NtlmCreateResponseFromChallenge(HANDLE hSecurity, const char *szChallenge,
if (!login || !psw)
return nullptr;
- CMStringA szAuth(FORMAT, "%S:%S", login, psw);
- szOutputToken = mir_base64_encode(szAuth.c_str(), szAuth.GetLength());
+ T2Utf szAuth(CMStringW(FORMAT, L"%s:%s", login, psw));
+ szOutputToken = mir_base64_encode(szAuth.get(), mir_strlen(szAuth));
complete = true;
}