From a4078fcca0e3f8db76b73ef9f6bb6d9108e96fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 11 Sep 2016 14:05:02 +0000 Subject: Facebook: Improve small const char* hack Seems previous variant was returning garbage on x64 build, this works better. git-svn-id: http://svn.miranda-ng.org/main/trunk@17283 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h index 1747e07496..01d3b45df0 100644 --- a/protocols/FacebookRM/src/client.h +++ b/protocols/FacebookRM/src/client.h @@ -157,7 +157,7 @@ public: // Increment request number and convert it to string with radix 36 (whole numbers + whole alphabet) char buffer[10]; itoa(InterlockedIncrement(&this->chat_req_), buffer, 36); - return ptrA(mir_strdup(buffer)); + return CMStringA(buffer); } __inline const char *__rev() { -- cgit v1.2.3