]> git.imager.perl.org - imager.git/commitdiff
again, convert array style pointer parameter to pointer
authorTony Cook <tony@develop-help.com>
Mon, 31 Dec 2018 10:54:35 +0000 (21:54 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 31 Dec 2018 10:54:35 +0000 (21:54 +1100)
Changes
fontft1.c

diff --git a/Changes b/Changes
index 355c7ea5afb7375784e9bf5fe27417323b948f6a..0847cf8814d8f112260b961ccd8b48e7a28dc398 100644 (file)
--- a/Changes
+++ b/Changes
@@ -11,7 +11,9 @@ Coverity finally finished a build, fix a few problems:
    reproduced on very wide floating-point sample images.
 
  - convert an array style function parameter pointer to pointer style
-   to prevent confusing Coverity in the T1 bounding box implementation
+   to prevent confusing Coverity in the T1 bounding box implementation.
+
+ - Similarly in the FT1 bounding box implementation.
 
  - initialize a pointer to prevent Coverity complaining in polygon
    drawing (it should always end up being set.)
index d1d92ca2fe9442b91ceb1aa50b20930dbe305b44..ef55c1bf1dff46d65c63715dbe931d89dbd6583f 100644 (file)
--- a/fontft1.c
+++ b/fontft1.c
@@ -1108,7 +1108,7 @@ Function to get texts bounding boxes given the instance of the font (internal)
 
 static
 undef_int
-i_tt_bbox_inst( TT_Fonthandle *handle, int inst ,const char *txt, size_t len, i_img_dim cords[BOUNDING_BOX_COUNT], int utf8 ) {
+i_tt_bbox_inst( TT_Fonthandle *handle, int inst ,const char *txt, size_t len, i_img_dim *cords, int utf8 ) {
   int upm, casc, cdesc, first;
   
   int start    = 0;
@@ -1207,7 +1207,7 @@ Interface to get a strings bounding box
 */
 
 undef_int
-i_tt_bbox( TT_Fonthandle *handle, double points,const char *txt,size_t len,i_img_dim cords[6], int utf8) {
+i_tt_bbox( TT_Fonthandle *handle, double points,const char *txt,size_t len,i_img_dim *cords, int utf8) {
   int inst;
 
   i_clear_error();