[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-426-g5d88858a2

git at osgeo.org git at osgeo.org
Mon Jan 31 07:39:49 PST 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  5d88858a2ca86e1eb8963515fc5dae86fd7ba382 (commit)
      from  a9645b900f59388b450178f2a52951c2da957dea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5d88858a2ca86e1eb8963515fc5dae86fd7ba382
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Jan 31 16:39:15 2022 +0100

    Fix -Werror=stringop-truncation warning

diff --git a/doc/html/image_src/generator.c b/doc/html/image_src/generator.c
index d53d9cd30..65203f5ce 100644
--- a/doc/html/image_src/generator.c
+++ b/doc/html/image_src/generator.c
@@ -308,9 +308,7 @@ getStyleName(char **styleName, char* line)
 	char *ptr = strrchr(line, ';');
 	if (ptr == NULL)
 	{
-		*styleName = malloc( 8 );
-		strncpy(*styleName, "Default", 7);
-		(*styleName)[7] = '\0';
+		*styleName = strdup("Default");
 		return 1;
 	}
 	else

-----------------------------------------------------------------------

Summary of changes:
 doc/html/image_src/generator.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list