summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_db.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-03-16 23:37:36 +0100
committerRobert Pösel <robyer@seznam.cz>2017-03-16 23:38:44 +0100
commit88cb4210be8c51a6fb567216bb87d2d6cf7826f8 (patch)
tree85073d31387a596fbce63f0b92ede9039ad67cf1 /protocols/SkypeWeb/src/skype_db.cpp
parent1d47308647e2b71dc1ef8a15e65ad900f3360939 (diff)
SkypeWeb: Fix db event blob size (addresses #608)
Diffstat (limited to 'protocols/SkypeWeb/src/skype_db.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_db.cpp b/protocols/SkypeWeb/src/skype_db.cpp
index a74b04793c..c2bf039e9c 100644
--- a/protocols/SkypeWeb/src/skype_db.cpp
+++ b/protocols/SkypeWeb/src/skype_db.cpp
@@ -68,7 +68,7 @@ MEVENT CSkypeProto::AddDbEvent(WORD type, MCONTACT hContact, DWORD timestamp, DW
return hDbEvent;
size_t messageLength = mir_strlen(content) + 1;
size_t messageIdLength = mir_strlen(uid);
- size_t cbBlob = messageLength + messageIdLength;
+ size_t cbBlob = messageLength + messageIdLength + 1;
PBYTE pBlob = (PBYTE)mir_alloc(cbBlob);
memcpy(pBlob, content, messageLength);
memcpy(pBlob + messageLength, uid, messageIdLength);