[mapserver-users] Testing KML support

Daniel Morissette dmorissette at mapgears.com
Mon May 10 10:11:45 EDT 2010


Peter Hopfgartner wrote:
> 
> I've "fixed" this (adding simply a cast, I'm not sure that this is the correct approach):
> 
> --- mapkmlrenderer.cpp	(revision 10149)
> +++ mapkmlrenderer.cpp	(working copy)
> @@ -372,7 +372,7 @@
>              tmpUrl = strdup( img->imageurl);
>              tmpUrl = msStringConcatenate(tmpUrl, (char *)(msGetBasename(tmpFileName)));
>              tmpUrl = msStringConcatenate(tmpUrl, ".");
> -            tmpUrl = msStringConcatenate(tmpUrl, MS_IMAGE_EXTENSION(RasterizerOutputFormat));
> +            tmpUrl = msStringConcatenate(tmpUrl, (char *)MS_IMAGE_EXTENSION(RasterizerOutputFormat));
>                  
>              createGroundOverlayNode(LayerNode, tmpUrl, layer);
>              msFree(tmpFileName);
> 

That would be a valid patch, but I think a better fix would be to change 
the second arg of msStringConcatenate() to be a const char *. i.e.


char *msStringConcatenate(char *pszDest, const char *pszSrc)


Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-users mailing list