[mapserver-commits] r7918 - branches/branch-5-2/mapserver

svn at osgeo.org svn at osgeo.org
Mon Sep 22 13:56:04 EDT 2008


Author: Assefa
Date: 2008-09-22 13:56:04 -0400 (Mon, 22 Sep 2008)
New Revision: 7918

Modified:
   branches/branch-5-2/mapserver/HISTORY.TXT
   branches/branch-5-2/mapserver/mapmssql2008.c
Log:
Correct allocation error in mapmssql2008.c (#2768)

Modified: branches/branch-5-2/mapserver/HISTORY.TXT
===================================================================
--- branches/branch-5-2/mapserver/HISTORY.TXT	2008-09-22 17:53:19 UTC (rev 7917)
+++ branches/branch-5-2/mapserver/HISTORY.TXT	2008-09-22 17:56:04 UTC (rev 7918)
@@ -12,6 +12,9 @@
 
 Current Version (SVN branch-5-2)
 --------------------------------
+
+- Correct allocation error in mapmssql2008.c (#2768)
+
 - Removed comma to correct WCS 1.1 Coverages formatting in payload directory. 
   (#2764)
 

Modified: branches/branch-5-2/mapserver/mapmssql2008.c
===================================================================
--- branches/branch-5-2/mapserver/mapmssql2008.c	2008-09-22 17:53:19 UTC (rev 7917)
+++ branches/branch-5-2/mapserver/mapmssql2008.c	2008-09-22 17:56:04 UTC (rev 7918)
@@ -1285,7 +1285,7 @@
 				/* Set up to request the size of the buffer needed */
                 rc = SQLGetData(layerinfo->conn->hstmt, layer->numitems + 1, SQL_C_BINARY, dummyBuffer, 0, &needLen);
 
-                /* allow space for coercion to geometry collection if needed
+                /* allow space for coercion to geometry collection if needed*/
                 wkbTemp = (char*)malloc(needLen+9);  
 
                 /* write data above space allocated for geometry collection coercion */



More information about the mapserver-commits mailing list