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 bfb3c68..5cf5aed 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 ef55c1b..cf2043f 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;