summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_polling.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-09-19 13:44:59 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-09-19 13:44:59 +0000
commit3e31902e8049fdd12bad86353617badead391917 (patch)
tree58fe03131b3a0b764ae83540a95edbb1190bc9ef /protocols/Steam/src/steam_polling.cpp
parentfc44d63282dd3639045cc6ef81cf49d8b14d167f (diff)
Steam: attempt to fix #1041
git-svn-id: http://svn.miranda-ng.org/main/trunk@15396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r--protocols/Steam/src/steam_polling.cpp3
1 files changed, 2 insertions, 1 deletions
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)
{