From 567c20380fcc19e66049cfb4527e14eb1156918e Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 31 Dec 2018 21:44:42 +1100 Subject: [PATCH] coverity took the 6 elements in the argument as gospel --- T1/Changes | 8 ++++++++ T1/T1.pm | 2 +- T1/imt1.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/T1/Changes b/T1/Changes index 14cdf0ee..252f3fad 100644 --- a/T1/Changes +++ b/T1/Changes @@ -1,3 +1,11 @@ +Imager::Font::T1 1.026 +====================== + +Coverity detected issue: + + - adjust a pointer parameter from an array-style declaration with 6 + elements to pointer style (since it hasn't been 6 for years.) + Imager::Font::T1 1.024 ====================== diff --git a/T1/T1.pm b/T1/T1.pm index cee3a3fa..a9c28af7 100644 --- a/T1/T1.pm +++ b/T1/T1.pm @@ -6,7 +6,7 @@ use vars qw(@ISA $VERSION); use Scalar::Util (); BEGIN { - $VERSION = "1.025"; + $VERSION = "1.026"; require XSLoader; XSLoader::load('Imager::Font::T1', $VERSION); diff --git a/T1/imt1.c b/T1/imt1.c index 42c8e50c..306e2218 100644 --- a/T1/imt1.c +++ b/T1/imt1.c @@ -360,7 +360,7 @@ function to get a strings bounding box given the font id and sizes */ int -i_t1_bbox(i_t1_font_t font, double points,const char *str,size_t len, i_img_dim cords[6], int utf8,char const *flags) { +i_t1_bbox(i_t1_font_t font, double points,const char *str,size_t len, i_img_dim *cords, int utf8,char const *flags) { BBox bbox; BBox gbbox; int mod_flags = t1_get_flags(flags); -- 2.39.5