From a229540280f53b41c7a82d251b7497b8eb9c91f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Suzuki=2C=20Toshiya=20=28=E9=88=B4=E6=9C=A8=E4=BF=8A?= =?UTF-8?q?=E5=93=89=29?= Date: Sun, 30 Apr 2006 04:46:17 +0000 Subject: [PATCH] fix bug in Mac_Read_POST_Resource() --- ChangeLog | 9 +++++++++ src/base/ftobjs.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67ea1765d..1ba3ac983 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-04-30 suzuki toshiya + + Fix bug in Mac_Read_POST_Resource() to parse PFB font with MacOS + resource fork (bug since 2003-09-11). Patch is provided by + Huib-Jan Imbens . + + * src/base/ftobjs.c: fix pfb_pos initialization, remove extra cast + to copy to pfb_lenpos. + 2006-04-29 Werner Lemberg Further C library abstraction. Based on a patch from diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index ccd0ed562..a7d82de76 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -1255,7 +1255,7 @@ pfb_data[3] = 0; pfb_data[4] = 0; pfb_data[5] = 0; - pfb_pos = 7; + pfb_pos = 6; pfb_lenpos = 2; len = 0; @@ -1288,7 +1288,7 @@ len = rlen; pfb_data[pfb_pos++] = (FT_Byte)type; - pfb_lenpos = (FT_Byte)pfb_pos; + pfb_lenpos = pfb_pos; pfb_data[pfb_pos++] = 0; /* 4-byte length, fill in later */ pfb_data[pfb_pos++] = 0; pfb_data[pfb_pos++] = 0;