The assumed Seek() position in the file cache was off by one byte.

This commit is contained in:
Detlef Würkner 2005-11-25 08:01:54 +00:00
parent 6b1c597cba
commit ba0893c915
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ Free_VecPooled( APTR poolHeader,
if ( (offset < sysfile->iobuf_start) || (offset + count > sysfile->iobuf_end) )
{
/* requested offset implies we need a buffer refill */
if ( !sysfile->iobuf_end || offset != (sysfile->iobuf_end + 1) )
if ( !sysfile->iobuf_end || offset != sysfile->iobuf_end )
{
/* a physical seek is necessary */
Seek( sysfile->file, offset, OFFSET_BEGINNING );