diff --git a/ChangeLog b/ChangeLog index edbf1dd63..7547942b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-17 Chia-I Wu + + * 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 * include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics), diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index 6cd9ffca9..a6b55b961 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; }