]> granicus.if.org Git - postgis/commitdiff
Address GCC 9 warning
authorRaúl Marín Rodríguez <rmrodriguez@carto.com>
Fri, 21 Jun 2019 13:45:04 +0000 (13:45 +0000)
committerRaúl Marín Rodríguez <rmrodriguez@carto.com>
Fri, 21 Jun 2019 13:45:04 +0000 (13:45 +0000)
shpopen.c:1757:22: error: ‘. Probably broken SHP file’ directive
output may be truncated writing 26 bytes into a region of size
between 25 and 48 [-Werror=format-truncation=]

git-svn-id: http://svn.osgeo.org/postgis/trunk@17555 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shpopen.c

index 160ec06d6e919e058af6e3c2403f7de248a08694..792f2d0be757acbe7a7272d0d0e8a02b1997adfa 100644 (file)
@@ -1565,7 +1565,7 @@ SHPReadObject( SHPHandle psSHP, int hEntity )
 {
     int32                nEntitySize, nRequiredSize;
     SHPObject           *psShape;
-    char                 szErrorMsg[128];
+    char                 szErrorMsg[130];
 
 /* -------------------------------------------------------------------- */
 /*      Validate the record/entity number.                              */