diff options
-rw-r--r-- | src/input/File.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/File.cpp b/src/input/File.cpp index 54dac1e..2528997 100644 --- a/src/input/File.cpp +++ b/src/input/File.cpp @@ -128,7 +128,7 @@ ssize_t FileBase::readFromFile(uint8_t* buffer, size_t size) return -1; } - if (buf.size() + ret == size) { + if (ret == size) { std::copy(m_nonblock_buffer.begin(), m_nonblock_buffer.end(), buffer); buffer += m_nonblock_buffer.size(); |