[mapserver-commits] r7426 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Mar 3 15:08:25 EST 2008


Author: dmorissette
Date: 2008-03-03 15:08:24 -0500 (Mon, 03 Mar 2008)
New Revision: 7426

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapimagemap.c
Log:
Fixed problem with large imagemaps generating no output (#2526)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-03-03 20:05:24 UTC (rev 7425)
+++ trunk/mapserver/HISTORY.TXT	2008-03-03 20:08:24 UTC (rev 7426)
@@ -13,6 +13,8 @@
 Current Version (5.1-dev, SVN trunk):
 -------------------------------------
 
+- Fixed problem with large imagemaps generating no output (#2526)
+
 - mapwms.c: make version optional for GetCapabilities again (#2528)
 
 - support URN scheme for components of observed property elements (#2522)

Modified: trunk/mapserver/mapimagemap.c
===================================================================
--- trunk/mapserver/mapimagemap.c	2008-03-03 20:05:24 UTC (rev 7425)
+++ trunk/mapserver/mapimagemap.c	2008-03-03 20:08:24 UTC (rev 7426)
@@ -1,5 +1,5 @@
 /******************************************************************************
- * $Id:$
+ * $Id$
  *
  * Project:  MapServer
  * Purpose:  Implements imagemap outputformat support.
@@ -2030,7 +2030,7 @@
               {
                   snprintf(workbuffer, sizeof(workbuffer), "%s", img->img.imagemap+iIndice );
                   workbuffer[nSize-1] = '\0';
-                  msIO_fprintf(stream, workbuffer);
+                  msIO_fwrite(workbuffer, strlen(workbuffer), 1, stream);
                   iIndice +=nSize-1;
               }
               if (iIndice < size)
@@ -2040,7 +2040,7 @@
               }
           }
           else
-            msIO_fprintf(stream, img->img.imagemap);
+              msIO_fwrite(img->img.imagemap, size, 1, stream);
 	  if( strcasecmp("OFF",msGetOutputFormatOption( format, "SKIPENDTAG", "OFF" )) == 0){
 		  if (dxf == 2)
 			  msIO_fprintf(stream, "END");



More information about the mapserver-commits mailing list