diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-20 14:11:08 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-20 14:11:08 +0000 |
commit | da2ddd55916acb7ac3ec3fd75bd0f5138772f757 (patch) | |
tree | 508e548e22d4d4ba023e50b7b3ae50461450f8d5 | |
parent | f5f976d4622c7581214c5135c65479d21af1491c (diff) |
SkypeWeb: Crashfix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14996 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/SkypeWeb/src/skype_polling.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp index 00e5555ef8..e4f503cd08 100644 --- a/protocols/SkypeWeb/src/skype_polling.cpp +++ b/protocols/SkypeWeb/src/skype_polling.cpp @@ -40,10 +40,9 @@ void CSkypeProto::PollingThread(void*) {
if (response->pData)
{
- void *pData = mir_alloc(response->dataLength);
+ char *pData = mir_strdup(response->pData);
if (pData != NULL)
{
- memcpy(pData, response->pData, response->dataLength);
ForkThread(&CSkypeProto::ParsePollData, pData);
}
else
|