From 3e31902e8049fdd12bad86353617badead391917 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 19 Sep 2015 13:44:59 +0000 Subject: Steam: attempt to fix #1041 git-svn-id: http://svn.miranda-ng.org/main/trunk@15396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_polling.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 1a50403fd3..975c008e77 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -185,7 +185,8 @@ void CSteamProto::PollingThread(void*) } else { - ptrA body(mir_strdup(response->pData)); + ptrA body((char*)mir_calloc(response->dataLength + 2)); + mir_strncpy(body, response->pData, response->dataLength + 1); JSONROOT root(body); if (root == NULL) { -- cgit v1.2.3