summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_ibb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_ibb.cpp')
-rw-r--r--protocols/JabberG/src/jabber_ibb.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_ibb.cpp b/protocols/JabberG/src/jabber_ibb.cpp
index a6cf22333b..55f3ba1851 100644
--- a/protocols/JabberG/src/jabber_ibb.cpp
+++ b/protocols/JabberG/src/jabber_ibb.cpp
@@ -179,16 +179,12 @@ BOOL CJabberProto::OnIbbRecvdData(const TCHAR *data, const TCHAR *sid, const TCH
item->jibb->wPacketId++;
- int length = 0;
- char *decodedData = JabberBase64DecodeT(data, &length);
- if ( !decodedData)
+ unsigned length;
+ ptrA decodedData((char*)mir_base64_decode( _T2A(data), &length));
+ if (decodedData == NULL)
return FALSE;
(this->*item->jibb->pfnRecv)(NULL, item->ft, decodedData, length);
-
item->jibb->dwTransferredSize += (DWORD)length;
-
- mir_free(decodedData);
-
return TRUE;
}