ref: 8c16ed361caf08cf4614378c3a0bf53a0b53ee4e
parent: 8b560632d7434a18dcc2639e3173fa653a4c0e6b
author: David Turner <[email protected]>
date: Thu Jan 19 08:10:49 EST 2006
* src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): fixed small bug that prevented compilation when FT_OPTIMIZE_MEMORY is defined
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-19 David Turner <[email protected]>
+
+ * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): fixed small
+ bug that prevented compilation when FT_OPTIMIZE_MEMORY is defined
+
2006-01-19 Brian Weed <[email protected]>
* builds/win32/visualc/freetype.dsp: Updated.
--- a/src/sfnt/ttsbit0.c
+++ b/src/sfnt/ttsbit0.c
@@ -221,9 +221,13 @@
{
FT_Byte* strike;
-
+#ifdef FT_OPTIMIZE_MEMORY
+ if ( strike_index >= (FT_ULong)face->sbit_num_strikes )
+ return SFNT_Err_Invalid_Argument;
+#else
if ( strike_index >= (FT_ULong)face->num_sbit_strikes )
return SFNT_Err_Invalid_Argument;
+#endif
strike = face->sbit_table + 8 + strike_index * 48;