* src/pfr/pfrload.c (pfr_aux_name_load): Thinko (#47567).
This commit is contained in:
parent
aff6ebb9a6
commit
fb550bf466
|
@ -1,3 +1,7 @@
|
||||||
|
2016-03-30 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/pfr/pfrload.c (pfr_aux_name_load): Thinko (#47567).
|
||||||
|
|
||||||
2016-03-30 Werner Lemberg <wl@gnu.org>
|
2016-03-30 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/pfr/pfrload.c (pfr_log_font_count): Better font size estimate.
|
* src/pfr/pfrload.c (pfr_log_font_count): Better font size estimate.
|
||||||
|
|
|
@ -743,6 +743,9 @@
|
||||||
FT_UInt n, ok;
|
FT_UInt n, ok;
|
||||||
|
|
||||||
|
|
||||||
|
if ( *astring )
|
||||||
|
FT_FREE( *astring );
|
||||||
|
|
||||||
if ( len > 0 && p[len - 1] == 0 )
|
if ( len > 0 && p[len - 1] == 0 )
|
||||||
len--;
|
len--;
|
||||||
|
|
||||||
|
@ -758,15 +761,13 @@
|
||||||
|
|
||||||
if ( ok )
|
if ( ok )
|
||||||
{
|
{
|
||||||
if ( *astring )
|
|
||||||
FT_FREE( *astring );
|
|
||||||
|
|
||||||
if ( FT_ALLOC( result, len + 1 ) )
|
if ( FT_ALLOC( result, len + 1 ) )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
|
|
||||||
FT_MEM_COPY( result, p, len );
|
FT_MEM_COPY( result, p, len );
|
||||||
result[len] = 0;
|
result[len] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Exit:
|
Exit:
|
||||||
*astring = result;
|
*astring = result;
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Reference in New Issue