diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-13 14:11:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-13 14:11:47 +0000 |
commit | ec6783d12fa3d427acabed5460cf343255a77118 (patch) | |
tree | beee2e7175604743abf2700c68adb167adced7f3 /protocols/Tox/src/tox_messages.cpp | |
parent | 6b1c0b2c99d9ebc1dbb7b7e5e8268af6f911bbff (diff) |
Tox:
- fixed contact status changing
- fixed messages encoding
git-svn-id: http://svn.miranda-ng.org/main/trunk@12784 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_messages.cpp')
-rw-r--r-- | protocols/Tox/src/tox_messages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index afa7c6e445..60de33d5d9 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -19,7 +19,7 @@ void CToxProto::OnFriendMessage(Tox*, uint32_t friendNumber, TOX_MESSAGE_TYPE ty mir_strncpy(rawMessage, (const char*)&message[4], length);
}
else
- mir_strncpy(rawMessage, (const char*)message, length);
+ mir_strncpy(rawMessage, (const char*)message, length + 1);
rawMessage[length] = 0;
PROTORECVEVENT recv = { 0 };
|