diff --git a/LCS/Stream/src/FileDescriptorBasedStream.cc b/LCS/Stream/src/FileDescriptorBasedStream.cc index 76640ffd7220428822885d6b44f42680d6003a74..467da2e64645d241fa3bb050cac1ff407a1a661f 100644 --- a/LCS/Stream/src/FileDescriptorBasedStream.cc +++ b/LCS/Stream/src/FileDescriptorBasedStream.cc @@ -29,7 +29,7 @@ void FileDescriptorBasedStream::read(void *ptr, size_t size) throw std::logic_error("read: premature end of file"); size -= bytes; - ptr = static_cast<char *>(ptr) + size; + ptr = static_cast<char *>(ptr) + bytes; } }