fix spurious error.

This commit is contained in:
Vitor Santos Costa 2011-09-02 15:37:47 +01:00
parent a9c737e532
commit 8a9868a120
1 changed files with 1 additions and 5 deletions

View File

@ -617,11 +617,7 @@ RestoreAtomList(Atom atm USES_REGS)
static size_t
read_bytes(IOSTREAM *stream, void *ptr, size_t sz)
{
size_t bytes_read;
if ((bytes_read = Sfread(ptr, sz, 1, stream)) < sz) {
ERROR(BAD_READ);
}
return sz;
return Sfread(ptr, sz, 1, stream);
}
static unsigned char