about summary refs log tree commit diff stats
path: root/src/LYReadCFG.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYReadCFG.c')
-rw-r--r--src/LYReadCFG.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c
index b4008041..382591e1 100644
--- a/src/LYReadCFG.c
+++ b/src/LYReadCFG.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYReadCFG.c,v 1.181 2013/11/28 11:21:09 tom Exp $
+ * $LynxId: LYReadCFG.c,v 1.182 2013/11/29 00:21:45 tom Exp $
  */
 #ifndef NO_RULES
 #include <HTRules.h>
@@ -586,8 +586,8 @@ static int character_set_fun(char *value)
     if (i < 0) {
 #ifdef CAN_AUTODETECT_DISPLAY_CHARSET
 	if (auto_display_charset >= 0
-	    && (!strnicmp(value, "AutoDetect ", 11)
-		|| !strnicmp(value, "AutoDetect-2 ", 13)))
+	    && (!strncasecomp(value, "AutoDetect ", 11)
+		|| !strncasecomp(value, "AutoDetect-2 ", 13)))
 	    current_char_set = auto_display_charset;
 #endif
 	/* do nothing here: so fallback to userdefs.h */