[mapserver-commits] r9048 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu May 28 13:48:17 EDT 2009
Author: pramsey
Date: 2009-05-28 13:48:17 -0400 (Thu, 28 May 2009)
New Revision: 9048
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mappostgis.c
Log:
Ensure there's enough room in the SQL to hold a long (#1284)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2009-05-28 17:48:02 UTC (rev 9047)
+++ trunk/mapserver/HISTORY.TXT 2009-05-28 17:48:17 UTC (rev 9048)
@@ -14,6 +14,8 @@
Current Version (SVN trunk):
----------------------------
+- Ensure there's enough room in the SQL to hold a long (#1284)
+
- Fix filter error in multi-clause filters (#2937)
- Fix agg freetype character lookup when no unicode charmap is present (#3018)
Modified: trunk/mapserver/mappostgis.c
===================================================================
--- trunk/mapserver/mappostgis.c 2009-05-28 17:48:02 UTC (rev 9047)
+++ trunk/mapserver/mappostgis.c 2009-05-28 17:48:17 UTC (rev 9048)
@@ -1205,7 +1205,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