diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-10-05 15:24:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 15:24:57 +0100 |
commit | 34a87c64a19cbdd9f73eb0142b9e6f3f573e726e (patch) | |
tree | 30218713281f669f59f4b109a1ebbed1fb2892dc /xmrstak/misc/executor.cpp | |
parent | 9c3a71ef090ea783a1124bd981dc1ce6e79b3309 (diff) | |
parent | 8ddc1f8974d03b4b275e1e3821916e380e21f774 (diff) | |
download | xmr-stak-34a87c64a19cbdd9f73eb0142b9e6f3f573e726e.zip xmr-stak-34a87c64a19cbdd9f73eb0142b9e6f3f573e726e.tar.gz |
Merge pull request #18 from fireice-uk/topic-larger-print-buf
Increase the scratchpad size to make sure we don't malform JSON
Diffstat (limited to 'xmrstak/misc/executor.cpp')
-rw-r--r-- | xmrstak/misc/executor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp index f2bdad4..ec9ac12 100644 --- a/xmrstak/misc/executor.cpp +++ b/xmrstak/misc/executor.cpp @@ -911,8 +911,8 @@ void executor::http_json_report(std::string& out) if(iPoolCallTimes.size() > 0) fAvgResTime = double(iConnSec) / iPoolCallTimes.size(); + char buffer[2048]; res_error.reserve((vMineResults.size() - 1) * 128); - char buffer[256]; for(size_t i=1; i < vMineResults.size(); i++) { using namespace std::chrono; @@ -933,7 +933,7 @@ void executor::http_json_report(std::string& out) iPoolPing = iPoolCallTimes[n_calls/2]; } - cn_error.reserve(vSocketLog.size() * 128); + cn_error.reserve(vSocketLog.size() * 256); for(size_t i=0; i < vSocketLog.size(); i++) { using namespace std::chrono; |