* Fix src/base/ftmac.c (open_face_from_buffer): fix the type of driver_type as const.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/ChangeLog b/ChangeLog
index a45ff14..dc9687d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * 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 <wl@gnu.org>
* src/raster/ftraster.c (count_table): Make it conditional.
diff --git a/src/base/ftmac.c b/src/base/ftmac.c
index fd6201a..c321f4d 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;