Commit a6e9ff3d20326d8d590f52643c69d73a2ad542e2

Werner Lemberg 2005-03-26T22:57:57

* builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix buffer offsets after a large read.

diff --git a/ChangeLog b/ChangeLog
index 64b7d33..edfd7a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-26  Detlef Würkner  <TetiSoft@apg.lahn.de>
+
+	* builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix buffer
+	offsets after a large read.
+
 2005-03-26  Werner Lemberg  <wl@gnu.org>
 
 	* src/autofit/afglobal.c (af_face_globals_get_metrics):
diff --git a/builds/amiga/src/base/ftsystem.c b/builds/amiga/src/base/ftsystem.c
index 2fb778c..2e4dff3 100644
--- a/builds/amiga/src/base/ftsystem.c
+++ b/builds/amiga/src/base/ftsystem.c
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    Amiga-specific FreeType low-level system interface (body).           */
 /*                                                                         */
-/*  Copyright 1996-2001, 2002 by                                           */
+/*  Copyright 1996-2001, 2002, 2005 by                                     */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -349,7 +349,7 @@ Free_VecPooled( APTR  poolHeader,
             ULONG bufsize;
 
             bufsize = ( read_bytes > IOBUF_SIZE ) ? IOBUF_SIZE : read_bytes;
-            sysfile->iobuf_end = offset + read_bytes - bufsize;
+            sysfile->iobuf_end = offset + read_bytes;
             sysfile->iobuf_start = sysfile->iobuf_end - bufsize;
             CopyMem( &buffer[read_bytes - bufsize] , sysfile->iobuf, bufsize );
           }