diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-25 23:47:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-25 23:47:56 +0300 |
commit | ea88e2c53d3ac0840955eb703213ca1430bb4361 (patch) | |
tree | 658c2290a12888922c9729a623d5d34e750bd626 /protocols/Tox/src | |
parent | 45bf5f51cc788cb8f19e1b8fcd5b8818dc7a2e00 (diff) |
PROTORECVFILE now uses const char/wchar_t pointers. also fixes #1864 completely
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r-- | protocols/Tox/src/tox_transfer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_transfer.cpp b/protocols/Tox/src/tox_transfer.cpp index 9558633893..d3d26ddf72 100644 --- a/protocols/Tox/src/tox_transfer.cpp +++ b/protocols/Tox/src/tox_transfer.cpp @@ -44,8 +44,8 @@ void CToxProto::OnFriendFile(Tox *tox, uint32_t friendNumber, uint32_t fileNumbe {
proto->debugLogA(__FUNCTION__": incoming file (%d) from %s (%d)", fileNumber, (const char*)pubKey, friendNumber);
- CMStringA rawName((char*)fileName, fileNameLength);
- wchar_t *name = mir_utf8decodeW(rawName);
+ CMStringA rawName((char*)fileName, (int)fileNameLength);
+ const wchar_t *name = mir_utf8decodeW(rawName);
FileTransferParam *transfer = new FileTransferParam(friendNumber, fileNumber, name, fileSize);
transfer->pfts.flags |= PFTS_RECEIVING;
|