From 0c2bd15027983dc1502edc0da7b0839fc9e9b70b Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 31 Jul 2015 09:41:08 +0000 Subject: stdmsg: fix blob size git-svn-id: http://svn.miranda-ng.org/main/trunk@14761 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdmsg/src/cmdlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/stdmsg/src/cmdlist.cpp b/src/core/stdmsg/src/cmdlist.cpp index 4fa38ae9ac..c605e0c6a6 100644 --- a/src/core/stdmsg/src/cmdlist.cpp +++ b/src/core/stdmsg/src/cmdlist.cpp @@ -97,7 +97,7 @@ void msgQueue_processack(MCONTACT hContact, int id, BOOL success, const char *sz dbei.flags = DBEF_SENT | DBEF_UTF | (p->flags & PREF_RTL ? DBEF_RTL : 0); dbei.szModule = GetContactProto(hContact); dbei.timestamp = time(0); - dbei.cbBlob = (DWORD)mir_strlen(p->szMsg); + dbei.cbBlob = (DWORD)(mir_strlen(p->szMsg) + 1); dbei.pBlob = (PBYTE)p->szMsg; MessageWindowEvent evt = { sizeof(evt), id, hContact, &dbei }; -- cgit v1.2.3