freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master d911cb5: * src/cid/cidload.c (cid_read_subrs): Tweak


From: Werner Lemberg
Subject: [freetype2] master d911cb5: * src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
Date: Sat, 1 May 2021 23:49:45 -0400 (EDT)

branch: master
commit d911cb5392bd558642fcd6e85d6224618b8e1421
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
---
 ChangeLog         | 4 ++++
 src/cid/cidload.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a9edaf5..f6fbaba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
+       * src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
+
+2021-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
        [sfnt] Avoid some memory zeroing.
 
        * src/sfnt/sfobjs.c (sfnt_open_font, sfnt_init_face,
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index f898a0d..a2e15fc 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -589,8 +589,8 @@
       /* allocate, and read them                     */
       data_len = offsets[num_subrs] - offsets[0];
 
-      if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
-           FT_QALLOC( subr->code[0], data_len )      )
+      if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||
+           FT_QALLOC( subr->code[0], data_len )       )
         goto Fail;
 
       if ( FT_STREAM_SEEK( cid->data_offset + offsets[0] ) ||



reply via email to

[Prev in Thread] Current Thread [Next in Thread]