summaryrefslogtreecommitdiff
path: root/src/base/ftobjs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/ftobjs.c')
-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 01b07bfc3..18c29c2c3 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -107,6 +107,9 @@
if ( !Q )
goto Fail;
+ if ( size > current )
+ memset( (char*)Q + current, 0, size - current );
+
*P = Q;
return FT_Err_Ok;