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/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to