shithub: freetype+ttf2subf

Download patch

ref: a6e9ff3d20326d8d590f52643c69d73a2ad542e2
parent: 2cefb52fc883921c73780ab9b638dfaa4c37d08a
author: Werner Lemberg <[email protected]>
date: Sat Mar 26 17:57:57 EST 2005

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-26  Detlef W�rkner  <[email protected]>
+
+	* builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix buffer
+	offsets after a large read.
+
 2005-03-26  Werner Lemberg  <[email protected]>
 
 	* src/autofit/afglobal.c (af_face_globals_get_metrics):
--- 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 @@
             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 );
           }