diff options
Diffstat (limited to 'src/psaux/psobjs.c')
-rw-r--r-- | src/psaux/psobjs.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 1d3c7e6..c7cbc67 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -594,9 +594,6 @@ error = FT_THROW( Invalid_File_Format ); } - if ( cur > limit ) - cur = limit; - parser->error = error; parser->cursor = cur; } @@ -1232,17 +1229,15 @@ if ( result < 0 || (FT_UInt)result < max_objects ) { FT_ERROR(( "ps_parser_load_field:" - " expected %d integer%s in the %s subarray\n" + " expected %d integers in the %s subarray\n" " " " of /FontBBox in the /Blend dictionary\n", - max_objects, max_objects > 1 ? "s" : "", + max_objects, i == 0 ? "first" : ( i == 1 ? "second" : ( i == 2 ? "third" : "fourth" ) ) )); error = FT_THROW( Invalid_File_Format ); - - FT_FREE( temp ); goto Exit; } |