[mapserver-commits] r9047 - branches/branch-5-4/mapserver
svn at osgeo.org
svn at osgeo.org
Thu May 28 13:48:03 EDT 2009
Author: pramsey
Date: 2009-05-28 13:48:02 -0400 (Thu, 28 May 2009)
New Revision: 9047
Modified:
branches/branch-5-4/mapserver/HISTORY.TXT
branches/branch-5-4/mapserver/mappostgis.c
Log:
Ensure there's enough room in the SQL to hold a long (#1284)
Modified: branches/branch-5-4/mapserver/HISTORY.TXT
===================================================================
--- branches/branch-5-4/mapserver/HISTORY.TXT 2009-05-28 17:01:05 UTC (rev 9046)
+++ branches/branch-5-4/mapserver/HISTORY.TXT 2009-05-28 17:48:02 UTC (rev 9047)
@@ -14,6 +14,8 @@
Current Version:
----------------
+- Ensure there's enough room in the SQL to hold a long (#1284)
+
- Fix filter error in multi-clause filters (#2937)
- Fix memory leak in SQL building (#2997)
Modified: branches/branch-5-4/mapserver/mappostgis.c
===================================================================
--- branches/branch-5-4/mapserver/mappostgis.c 2009-05-28 17:01:05 UTC (rev 9046)
+++ branches/branch-5-4/mapserver/mappostgis.c 2009-05-28 17:48:02 UTC (rev 9047)
@@ -1207,7 +1207,7 @@
/* Populate strUid, if necessary. */
if ( uid ) {
static char *strUidTemplate = "\"%s\" = %ld";
- strUid = (char*)malloc(strlen(strUidTemplate) + strlen(layerinfo->uid) + 9);
+ strUid = (char*)malloc(strlen(strUidTemplate) + strlen(layerinfo->uid) + 64);
sprintf(strUid, strUidTemplate, layerinfo->uid, *uid);
strUidLength = strlen(strUid);
}
More information about the mapserver-commits
mailing list