浏览代码

displaylib: Replace strncmp() by G_strncasecmp()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52383 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父节点
当前提交
fecf7da73d
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      lib/display/r_raster.c

+ 1 - 3
lib/display/r_raster.c

@@ -95,8 +95,6 @@ int read_env_file(const char *path)
 
   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 @@ int D_open_driver(void)
 	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;