From 7d364b7e51982ebe926c4148c752e0758c4dd2ed Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 17 Sep 2015 16:31:58 +0200 Subject: [PATCH] [psaux] Improve tracing message. * src/psaux/psobjs.c (ps_parser_load_field) : Handle plural correctly. --- ChangeLog | 7 +++++++ src/psaux/psobjs.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4f859bb4..8bad3b52d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-09-17 Werner Lemberg + + [psaux] Improve tracing message. + + * src/psaux/psobjs.c (ps_parser_load_field) : + Handle plural correctly. + 2015-09-17 Werner Lemberg [pcf] Fix integer overflows (#45985). diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 54eabe2b3..1852998b4 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -1232,10 +1232,10 @@ if ( result < 0 || (FT_UInt)result < max_objects ) { FT_ERROR(( "ps_parser_load_field:" - " expected %d integers in the %s subarray\n" + " expected %d integer%s in the %s subarray\n" " " " of /FontBBox in the /Blend dictionary\n", - max_objects, + max_objects, max_objects > 1 ? "s" : "", i == 0 ? "first" : ( i == 1 ? "second" : ( i == 2 ? "third"