diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-09-19 13:44:59 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-09-19 13:44:59 +0000 |
commit | 3e31902e8049fdd12bad86353617badead391917 (patch) | |
tree | 58fe03131b3a0b764ae83540a95edbb1190bc9ef /protocols/Steam/src/steam_polling.cpp | |
parent | fc44d63282dd3639045cc6ef81cf49d8b14d167f (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.cpp | 3 |
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) { |