[mapserver-commits] r11651 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu May 5 01:05:35 EDT 2011


Author: sdlime
Date: 2011-05-04 22:05:35 -0700 (Wed, 04 May 2011)
New Revision: 11651

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/maptemplate.c
Log:
Fixed seg fault with [shpxy] tag... (#3860)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2011-05-05 05:03:51 UTC (rev 11650)
+++ trunk/mapserver/HISTORY.TXT	2011-05-05 05:05:35 UTC (rev 11651)
@@ -15,6 +15,8 @@
 Current Version (SVN trunk): 
 ---------------------------- 
 
+- Fixed seg fault with [shpxy] tag... (#3860)
+
 - Removed obsolete msQueryByOperator() function
 
 - Call msLayerClose() before msLayerOpen() in the various query functions (#3692)

Modified: trunk/mapserver/maptemplate.c
===================================================================
--- trunk/mapserver/maptemplate.c	2011-05-05 05:03:51 UTC (rev 11650)
+++ trunk/mapserver/maptemplate.c	2011-05-05 05:05:35 UTC (rev 11651)
@@ -2231,7 +2231,7 @@
 
         if(strlen(ph) > 0) coords = msStringConcatenate(coords, ph);
 
-        for(p=0; j<tShape.line[i].numpoints-1; p++) {
+        for(p=0; p<tShape.line[i].numpoints-1; p++) {
           snprintf(point, sizeof(point), pointFormat1, scale_x*tShape.line[i].point[p].x, scale_y*tShape.line[i].point[p].y);
           coords = msStringConcatenate(coords, point);
         }



More information about the mapserver-commits mailing list