summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-04-28 10:38:16 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-04-28 10:38:16 +0000
commit6c7c1bdcfd6c306a900c92ea0c2eca75fc662052 (patch)
tree10b82152117894da40d426434d7f38d87125a1d6 /protocols/Skype/src/skype_database.cpp
parent5cf06122b92f89b3937c74e065e6a47067663563 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@4557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;