]> git.imager.perl.org - imager.git/commitdiff
change an array parameter decl to a pointer style decl
authorTony Cook <tony@develop-help.com>
Tue, 1 Jan 2019 01:07:39 +0000 (12:07 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 1 Jan 2019 01:07:39 +0000 (12:07 +1100)
to avoid confusing coverity

Changes
fontft1.c

diff --git a/Changes b/Changes
index bfb3c680318a6fee5eb9cbc43502a031f982a94a..5cf5aedd6c84011ce16a731768dc1adfcc9b9704 100644 (file)
--- a/Changes
+++ b/Changes
@@ -15,6 +15,9 @@ Coverity finally finished a build, fix a few problems:
 
  - Similarly in the FT1 bounding box implementation.
 
+ - Similarly for the i_tt_rasterize() function in the FT1
+   implementation.
+
  - initialize a pointer to prevent Coverity complaining in polygon
    drawing (it should always end up being set.)
 
index ef55c1bf1dff46d65c63715dbe931d89dbd6583f..cf2043f70c4bc63902386ec3462bf708d33b0c8a 100644 (file)
--- a/fontft1.c
+++ b/fontft1.c
@@ -972,7 +972,7 @@ interface for generating single channel raster of text (internal)
 
 static
 int
-i_tt_rasterize( TT_Fonthandle *handle, TT_Raster_Map *bit, i_img_dim cords[6], double points, char const* txt, size_t len, int smooth, int utf8 ) {
+i_tt_rasterize( TT_Fonthandle *handle, TT_Raster_Map *bit, i_img_dim *cords, double points, char const* txt, size_t len, int smooth, int utf8 ) {
   int inst;
   i_img_dim width, height;
   TT_Raster_Map small_bit;