coverity took the 6 elements in the argument as gospel
authorTony Cook <tony@develop-help.com>
Mon, 31 Dec 2018 10:44:42 +0000 (21:44 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 31 Dec 2018 10:44:42 +0000 (21:44 +1100)
T1/Changes
T1/T1.pm
T1/imt1.c

index 14cdf0eeffc771fcec54d15dcf0fd5b119389abd..252f3fadfa6a23a540c608498f0fe8c911f3ccaf 100644 (file)
@@ -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
 ======================
 
index cee3a3fae6c26fe0ac297e0666c88c1faf747695..a9c28af733e4e6c816c9cf41c636943930b483e0 100644 (file)
--- 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);
index 42c8e50cf7aad666d209b483b3a660ceb3d15888..306e22189bd1aad63bda2d3860ea4194ca0d7f8d 100644 (file)
--- 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);