summaryrefslogtreecommitdiff
path: root/src/pfr
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-04-23 08:35:02 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-04-23 08:35:02 -0400
commitb3438ccb31ba137f5f43c2c6da7be423629292e0 (patch)
treec1ba9f34cd94241ed2b1cc9ea031be0483ebc427 /src/pfr
parent1e525c62ae5166776c6badab0e45656370b2b344 (diff)
downloadfreetype2-b3438ccb31ba137f5f43c2c6da7be423629292e0.tar.gz
[pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
* src/pfr/pfrload.c (pfr_extra_item_load_font_id, pfr_aux_name_load): Do not zero out the buffer.
Diffstat (limited to 'src/pfr')
-rw-r--r--src/pfr/pfrload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pfr/pfrload.c b/src/pfr/pfrload.c
index aa2ffa6ec..17dbaebc1 100644
--- a/src/pfr/pfrload.c
+++ b/src/pfr/pfrload.c
@@ -565,7 +565,7 @@
if ( phy_font->font_id )
goto Exit;
- if ( FT_ALLOC( phy_font->font_id, len + 1 ) )
+ if ( FT_QALLOC( phy_font->font_id, len + 1 ) )
goto Exit;
/* copy font ID name, and terminate it for safety */
@@ -761,7 +761,7 @@
if ( ok )
{
- if ( FT_ALLOC( result, len + 1 ) )
+ if ( FT_QALLOC( result, len + 1 ) )
goto Exit;
FT_MEM_COPY( result, p, len );