diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-18 14:40:43 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-18 14:40:43 +0000 |
commit | cdbdcef6d92500b3b156ea6e304440e82621aa00 (patch) | |
tree | 6c6673df2824ae7e83dfa8c2c9b2859388c574b7 /protocols/JabberG/src/jabber_file.cpp | |
parent | 08c2fa14c7ee65003e8e9b59567bb4525d17c28c (diff) |
fixes 584
git-svn-id: http://svn.miranda-ng.org/main/trunk@8163 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_file.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index 1975b126a7..92d9019b32 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -285,7 +285,7 @@ void __cdecl CJabberProto::FileServerThread(filetransfer *ft) char *pFileName = mir_urlEncode( ptrA( mir_utf8encodeT(p)));
if (pFileName != NULL) {
- ft->iqId = SerialNext();
+ ft->szId = JabberId2string(SerialNext());
ptrA myAddr;
if (m_options.BsDirect && m_options.BsDirectManual)
@@ -302,7 +302,7 @@ void __cdecl CJabberProto::FileServerThread(filetransfer *ft) TCHAR *fulljid = (TCHAR *)alloca(sizeof(TCHAR) * len);
mir_sntprintf(fulljid, len, _T("%s/%s"), ft->jid, ptszResource);
- XmlNodeIq iq(_T("set"), ft->iqId, fulljid);
+ XmlNodeIq iq(_T("set"), ft->szId, fulljid);
HXML query = iq << XQUERY(JABBER_FEAT_OOB);
query << XCHILD(_T("url"), _A2T(szAddr));
query << XCHILD(_T("desc"), ft->szDescription);
@@ -468,6 +468,7 @@ filetransfer::~filetransfer() if (hWaitEvent != INVALID_HANDLE_VALUE)
CloseHandle(hWaitEvent);
+ mir_free(szId);
mir_free(jid);
mir_free(sid);
mir_free(fileSize);
|