[mapserver-commits] r12760 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Nov 8 05:15:17 EST 2011


Author: tbonfort
Date: 2011-11-08 02:15:16 -0800 (Tue, 08 Nov 2011)
New Revision: 12760

Modified:
   trunk/mapserver/mappostgresql.c
Log:
fix string allocation on pg joins (#4074)


Modified: trunk/mapserver/mappostgresql.c
===================================================================
--- trunk/mapserver/mappostgresql.c	2011-11-07 19:08:33 UTC (rev 12759)
+++ trunk/mapserver/mappostgresql.c	2011-11-08 10:15:16 UTC (rev 12760)
@@ -326,7 +326,7 @@
         }
 
         /* Create the query string. */
-        sql = (char *)malloc(24 + strlen(columns) + strlen(join->table) + 
+        sql = (char *)malloc(26 + strlen(columns) + strlen(join->table) + 
                 strlen(join->to) + strlen(joininfo->from_value));
         if(!sql) {
             msSetError(MS_MEMERR, "Failure to malloc.\n", 



More information about the mapserver-commits mailing list