* src/truetype/ttinterp.c (Update_Max): Set current size of buffer correctly (so that memory debug system won't panic).
diff --git a/ChangeLog b/ChangeLog
index edbf1dd..7547942 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-17 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttinterp.c (Update_Max): Set current size of buffer
+ correctly (so that memory debug system won't panic).
+
2005-12-16 Chia-I Wu <b90201047@ntu.edu.tw>
* include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics),
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 6cd9ffc..a6b55b9 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -519,7 +519,7 @@
if ( *size < new_max )
{
- if ( FT_REALLOC( *buff, *size, new_max * multiplier ) )
+ if ( FT_REALLOC( *buff, *size * multiplier, new_max * multiplier ) )
return error;
*size = new_max;
}