mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 04:46:46 -05:00
Set stream state to EOF in sfill when reaching stream size limit
This commit is contained in:
parent
f492b73028
commit
bf3647f355
1 changed files with 2 additions and 1 deletions
|
|
@ -231,8 +231,9 @@ static int sfill(STREAM* s)
|
||||||
/* LCOV_EXCL_STOP */
|
/* LCOV_EXCL_STOP */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if we reached the end, doesn't try to read */
|
/* expose the logical size boundary as EOF, just like EOF from the underlying file */
|
||||||
if (s->offset >= s->size) {
|
if (s->offset >= s->size) {
|
||||||
|
s->state = STREAM_STATE_EOF;
|
||||||
return EOF;
|
return EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue