forked from minhngoc25a/freetype2
* src/base/ftgloadr.c (FT_GlyphLoader_CheckSubGlyphs): fixed a memory
allocation bug that was due to un-careful renaming of the FT_SubGlyph type..
This commit is contained in:
parent
5cff1134e9
commit
5819e3f3c7
|
@ -1,5 +1,9 @@
|
||||||
2002-03-20 David Turner <david@freetype.org>
|
2002-03-20 David Turner <david@freetype.org>
|
||||||
|
|
||||||
|
* src/base/ftgloadr.c (FT_GlyphLoader_CheckSubGlyphs): fixed a memory
|
||||||
|
allocation bug that was due to un-careful renaming of the FT_SubGlyph
|
||||||
|
type..
|
||||||
|
|
||||||
* renaming stream macros. Examples:
|
* renaming stream macros. Examples:
|
||||||
|
|
||||||
FILE_Skip => FT_STREAM_SKIP
|
FILE_Skip => FT_STREAM_SKIP
|
||||||
|
|
|
@ -245,7 +245,7 @@
|
||||||
if ( new_max > old_max )
|
if ( new_max > old_max )
|
||||||
{
|
{
|
||||||
new_max = ( new_max + 1 ) & -2;
|
new_max = ( new_max + 1 ) & -2;
|
||||||
if ( REALLOC_ARRAY( base->subglyphs, old_max, new_max, FT_SubGlyph ) )
|
if ( REALLOC_ARRAY( base->subglyphs, old_max, new_max, FT_SubGlyphRec ) )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
|
|
||||||
loader->max_subglyphs = new_max;
|
loader->max_subglyphs = new_max;
|
||||||
|
|
Loading…
Reference in New Issue