[mapserver-commits] r7568 - branches/branch-5-0/mapserver

svn at osgeo.org svn at osgeo.org
Wed May 7 00:36:01 EDT 2008


Author: pramsey
Date: 2008-05-07 00:36:01 -0400 (Wed, 07 May 2008)
New Revision: 7568

Modified:
   branches/branch-5-0/mapserver/mapshape.c
Log:
Remove strcasestr in deference to MSVC


Modified: branches/branch-5-0/mapserver/mapshape.c
===================================================================
--- branches/branch-5-0/mapserver/mapshape.c	2008-05-07 04:33:30 UTC (rev 7567)
+++ branches/branch-5-0/mapserver/mapshape.c	2008-05-07 04:36:01 UTC (rev 7568)
@@ -1460,7 +1460,8 @@
 
     /* deal with case where sourcename is of the form 'file.shp' */
     sourcename = strdup(shpfile->source);
-    s = strcasestr(sourcename, ".shp");
+    /* TODO: need to handle this case insensitively */
+    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