Skip to content

Commit

Permalink
Memory objects that uses filesize(), that again uses seek(), caused o…
Browse files Browse the repository at this point in the history
…bject to get stuck info EOF state
  • Loading branch information
mywave82 authored and Malvineous committed Aug 7, 2019
1 parent d24b037 commit 0a9cdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binstr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void binsbase::seek(long p, Offset offs)
}

// Seek after end of data
if(spos - data >= length) {
if(spos - data > length) {
err |= Eof;
spos = data + length;
}
Expand Down

0 comments on commit 0a9cdf8

Please sign in to comment.