From 1043fd1d7d1f4f732d4c4bac5be1924692bf6f31 Mon Sep 17 00:00:00 2001 From: Michel De Vittori Date: Fri, 19 Jul 2019 11:10:40 +0200 Subject: Update File.cpp (cherry picked from commit e1cc67c13c63b7ad894687f8f23863a737fef30f) --- src/input/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3