mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Set stream state to EOF in sfill when reaching stream size limit
This commit is contained in:
parent
9bb73043c3
commit
a1a3315824
1 changed files with 1 additions and 0 deletions
|
|
@ -233,6 +233,7 @@ static int sfill(STREAM* s)
|
|||
|
||||
/* if we reached the end, doesn't try to read */
|
||||
if (s->offset >= s->size) {
|
||||
s->state = STREAM_STATE_EOF;
|
||||
return EOF;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue