summaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMichel De Vittori <michel.devittori@gmail.com>2019-07-19 11:10:40 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-12-20 11:18:43 +0100
commit1043fd1d7d1f4f732d4c4bac5be1924692bf6f31 (patch)
treee84f406ba04ad2dbb29a6c2adb6655d9eff20355 /src/input
parenta1e65c0695f35c7decfed3a48ef9ba195d0fbbef (diff)
downloaddabmux-1043fd1d7d1f4f732d4c4bac5be1924692bf6f31.tar.gz
dabmux-1043fd1d7d1f4f732d4c4bac5be1924692bf6f31.tar.bz2
dabmux-1043fd1d7d1f4f732d4c4bac5be1924692bf6f31.zip
Update File.cpp
(cherry picked from commit e1cc67c13c63b7ad894687f8f23863a737fef30f)
Diffstat (limited to 'src/input')
-rw-r--r--src/input/File.cpp2
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();