[mapserver-commits] r11066 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Mar 4 06:07:37 EST 2011


Author: tamas
Date: 2011-03-04 03:07:36 -0800 (Fri, 04 Mar 2011)
New Revision: 11066

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapmssql2008.c
Log:
Fixed Sql Server 2008 key column name truncation (#3654)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2011-03-04 10:28:47 UTC (rev 11065)
+++ trunk/mapserver/HISTORY.TXT	2011-03-04 11:07:36 UTC (rev 11066)
@@ -14,6 +14,8 @@
 Current Version (SVN trunk):
 ----------------------------
 
+- Fixed Sql Server 2008 key column name truncation (#3654)
+
 - Added label position binding (#3612) and label shadow size binding (#2924)
 
 - Implement MS RFC 69: Support for clustering of features in point layers (#3700)

Modified: trunk/mapserver/mapmssql2008.c
===================================================================
--- trunk/mapserver/mapmssql2008.c	2011-03-04 10:28:47 UTC (rev 11065)
+++ trunk/mapserver/mapmssql2008.c	2011-03-04 11:07:36 UTC (rev 11066)
@@ -1743,7 +1743,7 @@
             tmp = pos_urid + strlen(pos_urid);
         }
         *urid_name = (char *) msSmallMalloc((tmp - (pos_urid + 14)) + 1);
-        strlcpy(*urid_name, pos_urid + 14, tmp - (pos_urid + 14 + 1));
+        strlcpy(*urid_name, pos_urid + 14, (tmp - (pos_urid + 14)) + 1);
     }
 
     /* Find the srid */



More information about the mapserver-commits mailing list