diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b97eae..1741a17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastodon-cpp - VERSION 0.4.2 + VERSION 0.4.3 LANGUAGES CXX ) diff --git a/src/http_sync.cpp b/src/http_sync.cpp index e9815dd..0d7d7a8 100644 --- a/src/http_sync.cpp +++ b/src/http_sync.cpp @@ -188,7 +188,7 @@ const size_t API::http::callback(char* data, size_t size, size_t nmemb, // This throws the runtime error: Failed writing body return 0; } - str->append(data); + str->append(data, size * nmemb); // ttdebug << "Received " << size * nmemb << " Bytes\n"; return size * nmemb; };