From cf093cd7d2ec1848019b1f9dda5f5c0237479188 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: Tue, 31 Jul 2007 03:58:09 +0000 Subject: [PATCH] * Fix src/base/ftmac.c (open_face_from_buffer): fix the type of driver_type as const. --- ChangeLog | 8 ++++++++ src/base/ftmac.c | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a45ff14ce..dc9687d2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-07-31 suzuki toshiya + + * src/base/ftmac.c (open_face_from_buffer): The argument + `driver_name' is typed as `const char*' to match with the + callers in FT_New_Face_From_LWFN and FT_New_Face_From_SFNT. + This is same with open_face_from_buffer in src/base/ftobjs.c. + Found and fixed by Sean McBride. + 2007-07-28 Werner Lemberg * src/raster/ftraster.c (count_table): Make it conditional. diff --git a/src/base/ftmac.c b/src/base/ftmac.c index fd6201adb..c321f4db4 100644 --- a/src/base/ftmac.c +++ b/src/base/ftmac.c @@ -707,12 +707,12 @@ /* Create a new FT_Face given a buffer and a driver name. */ static FT_Error - open_face_from_buffer( FT_Library library, - FT_Byte* base, - FT_ULong size, - FT_Long face_index, - char* driver_name, - FT_Face* aface ) + open_face_from_buffer( FT_Library library, + FT_Byte* base, + FT_ULong size, + FT_Long face_index, + const char* driver_name, + FT_Face* aface ) { FT_Open_Args args; FT_Error error;