From ad4d1f66d3b6857b4e18f294c06ff5a71075697c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 28 Jan 2015 23:38:26 +0000 Subject: Don't trash our buffer pointer when stepping through the taglist --- amiga/os3support.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amiga/os3support.c b/amiga/os3support.c index 987f18b2b..548d7ce16 100644 --- a/amiga/os3support.c +++ b/amiga/os3support.c @@ -87,7 +87,9 @@ struct OutlineFont *OpenOutlineFont(STRPTR fileName, struct List *list, ULONG fl } /* Relocate all the OT_Indirect tags */ - while (ti = NextTagItem(&buffer)) { + struct TagItem *tstate = buffer; + + while (ti = NextTagItem(&tstate)) { if(ti->ti_Tag & OT_Indirect) { ti->ti_Data += buffer; } -- cgit v1.2.3