From ff3e2e1dc74ea1f983a3b95773800de2ac5d7ea2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Jun 2013 14:11:10 +0000 Subject: custom json parser removed git-svn-id: http://svn.miranda-ng.org/main/trunk@5119 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/connection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/WhatsApp/src/connection.cpp') 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); -- cgit v1.2.3