From da2ddd55916acb7ac3ec3fd75bd0f5138772f757 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 20 Aug 2015 14:11:08 +0000 Subject: SkypeWeb: Crashfix git-svn-id: http://svn.miranda-ng.org/main/trunk@14996 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_polling.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/SkypeWeb') 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 -- cgit v1.2.3