[mapserver-commits] r11864 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Sat Jul 2 11:09:47 EDT 2011
Author: rouault
Date: 2011-07-02 08:09:47 -0700 (Sat, 02 Jul 2011)
New Revision: 11864
Modified:
trunk/mapserver/mapcontext.c
Log:
to make analysers happier (no real issue possible in practice)
Modified: trunk/mapserver/mapcontext.c
===================================================================
--- trunk/mapserver/mapcontext.c 2011-07-02 15:06:55 UTC (rev 11863)
+++ trunk/mapserver/mapcontext.c 2011-07-02 15:09:47 UTC (rev 11864)
@@ -929,7 +929,7 @@
if (unique_layer_names)
{
- pszName = (char*)malloc(sizeof(char)*(strlen(pszValue)+10));
+ pszName = (char*)malloc(sizeof(char)*(strlen(pszValue)+15));
sprintf(pszName, "l%d:%s", layer->index, pszValue);
layer->name = msStrdup(pszName);
free(pszName);
@@ -939,7 +939,7 @@
}
else
{
- pszName = (char*)malloc(sizeof(char)*10);
+ pszName = (char*)malloc(sizeof(char)*15);
sprintf(pszName, "l%d:", layer->index);
layer->name = msStrdup(pszName);
free(pszName);
More information about the mapserver-commits
mailing list