summaryrefslogtreecommitdiffstats
path: root/src/Stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Stream.cpp')
-rw-r--r--src/Stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Stream.cpp b/src/Stream.cpp
index d7b1072..a44b91c 100644
--- a/src/Stream.cpp
+++ b/src/Stream.cpp
@@ -281,8 +281,8 @@ void StreamOutput::WriteByteArray(std::vector<unsigned char> value) {
void StreamBuffer::ReadData(unsigned char *buffPtr, size_t buffLen) {
size_t bufferLengthLeft = buffer + bufferLength - bufferPtr;
- if (bufferLengthLeft < buffLen)
- throw std::runtime_error("Required data is more, than in buffer available");
+ if (bufferLengthLeft < buffLen)
+ throw std::runtime_error("Required data is more, than in buffer available");
std::memcpy(buffPtr, bufferPtr, buffLen);
bufferPtr += buffLen;
}