diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-31 19:16:30 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-31 19:16:30 +0000 |
commit | 760f8d30226213cb615180b462fc266dca955451 (patch) | |
tree | b6e12ce1aa65d6ea18e81f9102250b5f57f92aaa /protocols/Tox/src/tox_contacts.cpp | |
parent | 862c352908a9800c2721870e09a8decce5adc1da (diff) |
Tox:
- fox for crush on auth request
- some fixes in file transfer
git-svn-id: http://svn.miranda-ng.org/main/trunk@10350 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r-- | protocols/Tox/src/tox_contacts.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index b696c6b70c..27898916cc 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -166,7 +166,7 @@ void CToxProto::OnFriendRequest(Tox *tox, const uint8_t *address, const uint8_t pre.timestamp = time(NULL);
pre.lParam = (DWORD)(sizeof(DWORD)* 2 + id.length() + messageSize + 5);
- /*blob is: 0(DWORD), hContact(DWORD), nick(ASCIIZ), firstName(ASCIIZ), lastName(ASCIIZ), sid(ASCIIZ), reason(ASCIIZ)*/
+ /*blob is: 0(DWORD), hContact(DWORD), nick(ASCIIZ), firstName(ASCIIZ), lastName(ASCIIZ), id(ASCIIZ), reason(ASCIIZ)*/
PBYTE pBlob, pCurBlob;
pCurBlob = pBlob = (PBYTE)mir_calloc(pre.lParam);
@@ -178,6 +178,7 @@ void CToxProto::OnFriendRequest(Tox *tox, const uint8_t *address, const uint8_t strcpy((char *)pCurBlob, id.c_str());
pCurBlob += id.length() + 1;
strcpy((char *)pCurBlob, (char*)message);
+ pre.szMessage = (char*)pBlob;
ProtoChainRecv(hContact, PSR_AUTH, 0, (LPARAM)&pre);
}
|