Navigation Menu

Skip to content

Commit

Permalink
MemoryStream - fix offset on read
Browse files Browse the repository at this point in the history
  • Loading branch information
djphoenix committed Apr 23, 2017
1 parent 831048b commit 2759542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kernlib/stream.cpp
Expand Up @@ -38,6 +38,7 @@ size_t MemoryStream::read(void* dest, size_t size) {
if (offset + size >= limit)
size = limit - offset;
Memory::copy(dest, memory + offset, size);
offset += size;
return size;
}
Stream* MemoryStream::substream(int64_t offset, size_t limit) {
Expand Down

0 comments on commit 2759542

Please sign in to comment.