Commit ba0893c915781d7d036d720c7811de798545b793

Detlef Würkner 2005-11-25T08:01:54

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/builds/amiga/src/base/ftsystem.c b/builds/amiga/src/base/ftsystem.c
index 6a6f212..ffedfa0 100644
--- a/builds/amiga/src/base/ftsystem.c
+++ b/builds/amiga/src/base/ftsystem.c
@@ -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 );