summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_ft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_ft.cpp')
-rw-r--r--protocols/JabberG/src/jabber_ft.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_ft.cpp b/protocols/JabberG/src/jabber_ft.cpp
index eb894395b2..36e300ed38 100644
--- a/protocols/JabberG/src/jabber_ft.cpp
+++ b/protocols/JabberG/src/jabber_ft.cpp
@@ -244,9 +244,7 @@ BOOL CJabberProto::FtIbbSend(int blocksize, filetransfer *ft)
// let others send data too
Sleep(2);
- char *encoded = mir_base64_encode(buffer, numRead);
-
- msg << XCHILD(L"data", _A2T(encoded)) << XATTR(L"xmlns", JABBER_FEAT_IBB)
+ msg << XCHILD(L"data", _A2T(ptrA(mir_base64_encode(buffer, numRead)))) << XATTR(L"xmlns", JABBER_FEAT_IBB)
<< XATTR(L"sid", ft->jibb->sid) << XATTRI(L"seq", ft->jibb->wPacketId);
HXML ampNode = msg << XCHILDNS(L"amp", JABBER_FEAT_AMP);
@@ -256,8 +254,6 @@ BOOL CJabberProto::FtIbbSend(int blocksize, filetransfer *ft)
<< XATTR(L"value", L"exact") << XATTR(L"action", L"error");
ft->jibb->wPacketId++;
- mir_free(encoded);
-
if (ft->jibb->state == JIBB_ERROR || ft->jibb->bStreamClosed || m_ThreadInfo->send(msg) == SOCKET_ERROR) {
debugLogA("JabberFtIbbSend unsuccessful exit");
_close(fd);