summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-27 11:50:44 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-27 11:50:44 +0000
commit699c680eb0adee413e74417dece429553c633733 (patch)
tree87aa4f1f160c40b61a4956caa8c2b389834c2976 /protocols/Skype/src/skype_database.cpp
parentf3d22ea361554a090112ccaeb4290d14964a283d (diff)
- fixed avatar and profile info updating
- code reorganizing git-svn-id: http://svn.miranda-ng.org/main/trunk@4552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_database.cpp')
-rw-r--r--protocols/Skype/src/skype_database.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp
index 86bd7a49ac..3edf766ed0 100644
--- a/protocols/Skype/src/skype_database.cpp
+++ b/protocols/Skype/src/skype_database.cpp
@@ -113,10 +113,10 @@ void CSkypeProto::RaiseMessageSendedEvent(HANDLE hContact, DWORD timestamp, cons
int guidLen = ::strlen(guid);
- char *msg = ::mir_strdup(message);
- int msgLen = ::strlen(msg) + 1;
+ int msgLen = ::strlen(message) + 1;
+ char *msg = (char *)::mir_alloc(msgLen + guidLen);
- msg = (char *)::mir_realloc(msg, msgLen + 32);
+ ::strcpy(msg, message); msg[msgLen - 1] = 0;
::memcpy((char *)&msg[msgLen], guid, 32);
DWORD flags = DBEF_UTF | DBEF_SENT;