[GRASS-SVN] r52383 - grass/trunk/lib/display

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 16 14:03:49 PDT 2012


Author: martinl
Date: 2012-07-16 14:03:47 -0700 (Mon, 16 Jul 2012)
New Revision: 52383

Modified:
   grass/trunk/lib/display/r_raster.c
Log:
displaylib: Replace strncmp() by G_strncasecmp()


Modified: grass/trunk/lib/display/r_raster.c
===================================================================
--- grass/trunk/lib/display/r_raster.c	2012-07-16 13:10:18 UTC (rev 52382)
+++ grass/trunk/lib/display/r_raster.c	2012-07-16 21:03:47 UTC (rev 52383)
@@ -95,8 +95,6 @@
 
   Default display driver is Cairo, if not available PNG is used.
 
-  \todo Replace strncmp by G_strncasecmp()
-  
   \return 0 on success
   \return 1 no monitor defined
 */
@@ -117,7 +115,7 @@
 	env = NULL;
 	G_asprintf(&env, "MONITOR_%s_MAPFILE", m);
 	v = G__getenv(env);
-	if (strncmp(m, "wx", 2) == 0) 
+	if (G_strncasecmp(m, "wx", 2) == 0) 
 	    p = NULL; /* use default display driver */
 	else
 	    p = m;



More information about the grass-commit mailing list