* builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix buffer

offsets after a large read.
This commit is contained in:
Werner Lemberg 2005-03-26 22:57:57 +00:00
parent 2cefb52fc8
commit a6e9ff3d20
2 changed files with 7 additions and 2 deletions

View File

@ -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):

View File

@ -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 );
}