diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-24 14:11:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-24 14:11:10 +0000 |
commit | ff3e2e1dc74ea1f983a3b95773800de2ac5d7ea2 (patch) | |
tree | 1c1c06d13c8af9b5d9c6db069b4bd8f3a5dc7fc0 /protocols/WhatsApp/src/connection.cpp | |
parent | 9d62e31863057f847b56e82e3880c4c588c9cb0a (diff) |
custom json parser removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5119 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/connection.cpp')
-rw-r--r-- | protocols/WhatsApp/src/connection.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/connection.cpp b/protocols/WhatsApp/src/connection.cpp index 2b87830046..e5cb3b034f 100644 --- a/protocols/WhatsApp/src/connection.cpp +++ b/protocols/WhatsApp/src/connection.cpp @@ -143,7 +143,9 @@ void WhatsAppProto::stayConnectedLoop(void*) CODE_BLOCK_TRY
- std::string password = ptrA((char*)mir_base64_decode(pass.c_str(),0));
+ unsigned passLen;
+ ptrA passBin((char*)mir_base64_decode(pass.c_str(), &passLen));
+ std::string password(passBin, passLen);
BYTE UseSSL = db_get_b(NULL, this->ModuleName(), WHATSAPP_KEY_SSL, 0);
if (UseSSL) {
this->conn = new WASocketConnection("c.whatsapp.net", 443);
|