diff options
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) { |