ref: ce34d122ba03b4a5b2c55a7ccb376dc1911caa37
parent: dcb8b7103fc8692cce093247188249fb786de2ff
author: Wu, Chia-I (吳佳一) <[email protected]>
date: Sat Dec 17 08:12:49 EST 2005
* src/truetype/ttinterp.c (Update_Max): Set current size of buffer correctly (so that memory debug system won't panic).
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-17 Chia-I Wu <[email protected]>
+
+ * 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 <[email protected]>
* include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics),
--- 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;
}