summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-24 13:59:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-24 13:59:13 +0300
commit972fa306badc2e072d65cec43c37496aa952eee0 (patch)
tree76ff03a4b30ba245206fde8c7ee726b957807207 /protocols/Twitter/src
parent1b60fdaf9e55690bbfb5a6d8b3f6b970e6d4373f (diff)
mir_urlDecode restored
Diffstat (limited to 'protocols/Twitter/src')
-rw-r--r--protocols/Twitter/src/oauth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Twitter/src/oauth.cpp b/protocols/Twitter/src/oauth.cpp
index b4b00cb8fa..3e6362c397 100644
--- a/protocols/Twitter/src/oauth.cpp
+++ b/protocols/Twitter/src/oauth.cpp
@@ -337,7 +337,7 @@ wstring mir_twitter::OAuthCreateSignature(const wstring& signatureBase, const ws
string keyBytes = WideToUTF8(key);
BYTE digest[MIR_SHA1_HASH_SIZE];
- unsigned int len = sizeof(digest);
+ unsigned int len;
string data = WideToUTF8(signatureBase);
HMAC(EVP_sha1(), keyBytes.c_str(), keyBytes.size(), (PBYTE)data.c_str(), data.size(), digest, &len);
ptrA encoded(mir_base64_encode(digest, sizeof(digest)));