[mapserver-commits] r7567 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed May 7 00:33:30 EDT 2008


Author: pramsey
Date: 2008-05-07 00:33:30 -0400 (Wed, 07 May 2008)
New Revision: 7567

Modified:
   trunk/mapserver/mapshape.c
Log:
Remove strcasestr


Modified: trunk/mapserver/mapshape.c
===================================================================
--- trunk/mapserver/mapshape.c	2008-05-07 04:13:29 UTC (rev 7566)
+++ trunk/mapserver/mapshape.c	2008-05-07 04:33:30 UTC (rev 7567)
@@ -1746,7 +1746,8 @@
 
     /* deal with case where sourcename is of the form 'file.shp' */
     sourcename = strdup(shpfile->source);
-    s = strcasestr(sourcename, ".shp");
+    /* TODO: need to add case-insensitive handling! */
+    s = strstr(sourcename, ".shp");
     if( s ) *s = '\0';
 
     if((filename = (char *)malloc(strlen(sourcename)+strlen(MS_INDEX_EXTENSION)+1)) == NULL) {



More information about the mapserver-commits mailing list