summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/messages.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-01-24 12:47:45 +0000
committerRobert Pösel <robyer@seznam.cz>2016-01-24 12:47:45 +0000
commitd9d9c0959bc0f6e45282076aa10cda595bce8ec1 (patch)
treecb41882be603828b2664725475b1976b7943b101 /protocols/FacebookRM/src/messages.cpp
parented3124fab56dbe4ea3a529e13abf4cdf5f2080f3 (diff)
Facebook: Fix memory corruption (thanks Wishmaster) (fixes #1164)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r--protocols/FacebookRM/src/messages.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}