From 1bcc42748448036582aa0b5310ffabf5184375bc Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 2 Feb 2018 12:31:16 +0000 Subject: [PATCH] Fixed a bug in TracktionMarketplaceStatus::readReplyFromWebserver() that would cause it to fail if all the data was not read at once --- .../marketplace/juce_TracktionMarketplaceStatus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_product_unlocking/marketplace/juce_TracktionMarketplaceStatus.cpp b/modules/juce_product_unlocking/marketplace/juce_TracktionMarketplaceStatus.cpp index 8eb80e0539..7e6e585b02 100644 --- a/modules/juce_product_unlocking/marketplace/juce_TracktionMarketplaceStatus.cpp +++ b/modules/juce_product_unlocking/marketplace/juce_TracktionMarketplaceStatus.cpp @@ -78,7 +78,7 @@ String TracktionMarketplaceStatus::readReplyFromWebserver (const String& email, auto max = jmin ((int) bufferSize, contentLength < 0 ? std::numeric_limits::max() : static_cast (contentLength - downloaded)); - auto actualBytesRead = stream->read (buffer.get(), max); + auto actualBytesRead = stream->read (buffer.get() + downloaded, max - downloaded); if (actualBytesRead < 0 || thread->threadShouldExit() || stream->isError()) break;