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.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp
index 3edf766ed0..c384611c7b 100644
--- a/protocols/Skype/src/skype_database.cpp
+++ b/protocols/Skype/src/skype_database.cpp
@@ -111,12 +111,13 @@ void CSkypeProto::RaiseMessageSendedEvent(HANDLE hContact, DWORD timestamp, cons
if (this->IsMessageInDB(hContact, timestamp, guid, DBEF_SENT))
return;
- int guidLen = ::strlen(guid);
+ int guidLen = (int)::strlen(guid);
- int msgLen = ::strlen(message) + 1;
+ int msgLen = (int)::strlen(message) + 1;
char *msg = (char *)::mir_alloc(msgLen + guidLen);
- ::strcpy(msg, message); msg[msgLen - 1] = 0;
+ ::strcpy(msg, message);
+ msg[msgLen - 1] = 0;
::memcpy((char *)&msg[msgLen], guid, 32);
DWORD flags = DBEF_UTF | DBEF_SENT;