Commit c78f78fab46669235aa9fa20e37e35b14773d2e0

Alexei Podtelezhnikov 2021-04-24T22:38:48

* src/cff/cffload.c (cff_index_get_pointers): s/FT_QALLOC/FT_ALLOC/.

diff --git a/ChangeLog b/ChangeLog
index a9bf5e0..61b942f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/cff/cffload.c (cff_index_get_pointers): s/FT_QALLOC/FT_ALLOC/.
+
 2021-04-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
 	* src/base/ftobjs.c (Mac_Read_POST_Resource): s/FT_ALLOC/FT_QALLOC/.
@@ -34,7 +38,7 @@
 	[cid] s/FT_ALLOC/FT_QALLOC/ and clean up.
 
 	* src/cid/cidgload.c (cid_load_glyph): Do not zero out the buffer.
-        * src/cid/cidload.c (cid_face_open, cid_read_subrs): Ditto.
+	* src/cid/cidload.c (cid_face_open, cid_read_subrs): Ditto.
 
 2021-04-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
diff --git a/src/cff/cffload.c b/src/cff/cffload.c
index 210ada1..23cba50 100644
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -426,9 +426,9 @@
 
     new_size = idx->data_size + idx->count;
 
-    if ( idx->count > 0                                 &&
-         !FT_NEW_ARRAY( tbl, idx->count + 1 )           &&
-         ( !pool || !FT_QALLOC( new_bytes, new_size ) ) )
+    if ( idx->count > 0                                &&
+         !FT_NEW_ARRAY( tbl, idx->count + 1 )          &&
+         ( !pool || !FT_ALLOC( new_bytes, new_size ) ) )
     {
       FT_ULong  n, cur_offset;
       FT_ULong  extra     = 0;