ref: 643398ea32c5ecfa27c5ce4e237e2239d56fea7e
parent: 8ce49bf56ccbb47def4531a2643262049eb6b297
author: cbagwell <cbagwell>
date: Thu Jan 2 22:12:22 EST 2003
Modified st_rawread() to stop reading on internal errors.
--- a/src/raw.c
+++ b/src/raw.c
@@ -433,7 +433,7 @@
ft->file.pos = 0;
ft->file.count = fread(ft->file.buf+i, 1, ft->file.size-i, ft->fp) ;
- if (ft->file.count == 0)
+ if (ft->file.count != ft->file.size-i)
{
ft->file.eof = 1;
}