summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
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;