summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2001-10-18 11:23:51 +0000
committerDavid Turner <david@freetype.org>2001-10-18 11:23:51 +0000
commitde3fb83c68bfc121fbffd47ba05d1ae3d0d70d86 (patch)
treeb0fd44f4ff4687939550682118f0ea03952a2fc8 /src
parente65e9b13c2055615cc876f529e5cbd0ca3c5893a (diff)
downloadfreetype2-de3fb83c68bfc121fbffd47ba05d1ae3d0d70d86.tar.gz
fixing a "bug" that affected the Postscript hinter: growing a memory block
though "realloc" didn't clear the new bytes of memory..
Diffstat (limited to 'src')
-rw-r--r--src/base/ftobjs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index b4ec9b6d1..370730825 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -109,6 +109,9 @@
if ( !Q )
goto Fail;
+ if ( size > current )
+ memset( (char*)Q + current, 0, size - current );
+
*P = Q;
return FT_Err_Ok;