Added ferror test

This commit is contained in:
Jaroslav Kysela 2001-06-25 07:30:49 +00:00
parent 964ce9d768
commit 279c153a41

View file

@ -70,6 +70,8 @@ ssize_t fill_buffer(uint_8 **start,uint_8 **end)
if (feof(in_file))
return EOF;
if (ferror(in_file))
return EOF;
if(bytes_read < CHUNK_SIZE)
return EOF;