shithub: freetype+ttf2subf

Download patch

ref: ba0893c915781d7d036d720c7811de798545b793
parent: 6b1c597cbad00e5309a3cf0ab815b3a15c705bb3
author: Detlef Würkner <[email protected]>
date: Fri Nov 25 03:01:54 EST 2005

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/builds/amiga/src/base/ftsystem.c
+++ b/builds/amiga/src/base/ftsystem.c
@@ -305,7 +305,7 @@
       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 );