From 699c680eb0adee413e74417dece429553c633733 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 27 Apr 2013 11:50:44 +0000 Subject: - fixed avatar and profile info updating - code reorganizing git-svn-id: http://svn.miranda-ng.org/main/trunk@4552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_database.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Skype/src/skype_database.cpp') 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; -- cgit v1.2.3