From d9d9c0959bc0f6e45282076aa10cda595bce8ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 24 Jan 2016 12:47:45 +0000 Subject: Facebook: Fix memory corruption (thanks Wishmaster) (fixes #1164) git-svn-id: http://svn.miranda-ng.org/main/trunk@16165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 4bc777f57d..05659f3153 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -228,7 +228,7 @@ void FacebookProto::StickerAsSmiley(std::string sticker, const std::string &url, cont.cbSize = sizeof(SMADD_CONT); cont.hContact = hContact; cont.type = 1; - cont.path = ptrT(_tcsdup(filename.c_str())); + cont.path = ptrT(mir_tstrdup(filename.c_str())); CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, (LPARAM)&cont); } -- cgit v1.2.3