diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2013-11-29 00:52:56 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2013-11-29 00:52:56 -0500 |
commit | 9e1419601a5cc9cafbc77b52dcb70d7e01350272 (patch) | |
tree | 727a87de2920e0789b591eab4901fdece3924ec8 /src | |
parent | 422b94378f762167eddba4f1874260f057d184bb (diff) | |
download | lynx-snapshots-9e1419601a5cc9cafbc77b52dcb70d7e01350272.tar.gz |
snapshot of project "lynx", label v2-8-8dev_17
Diffstat (limited to 'src')
-rw-r--r-- | src/LYExtern.c | 10 | ||||
-rw-r--r-- | src/LYReadCFG.c | 6 | ||||
-rw-r--r-- | src/LYUtils.c | 6 | ||||
-rw-r--r-- | src/UCAuto.c | 4 | ||||
-rw-r--r-- | src/Xsystem.c | 4 |
5 files changed, 15 insertions, 15 deletions
diff --git a/src/LYExtern.c b/src/LYExtern.c index 846b652c..bed345f3 100644 --- a/src/LYExtern.c +++ b/src/LYExtern.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYExtern.c,v 1.53 2013/11/28 11:18:33 tom Exp $ + * $LynxId: LYExtern.c,v 1.54 2013/11/29 00:21:20 tom Exp $ * External application support. This feature allows lynx to pass a given URL to an external program. @@ -167,7 +167,7 @@ static char *format_command(char *command, char pram_string[LY_MAXPATH]; char *escaped = NULL; - if (strnicmp("file://localhost/", param, 17) == 0) { + if (strncasecomp("file://localhost/", param, 17) == 0) { /* decode local path parameter for programs to be able to interpret - TH */ LYStrNCpy(pram_string, param, sizeof(pram_string) - 1); @@ -181,7 +181,7 @@ static char *format_command(char *command, if (isMAILTO_URL(param)) { format(&cmdbuf, command, param + 7); - } else if (strnicmp("telnet://", param, 9) == 0) { + } else if (strncasecomp("telnet://", param, 9) == 0) { char host[sizeof(pram_string)]; int last_pos; @@ -191,7 +191,7 @@ static char *format_command(char *command, host[last_pos] = '\0'; format(&cmdbuf, command, host); - } else if (strnicmp("file://localhost/", param, 17) == 0) { + } else if (strncasecomp("file://localhost/", param, 17) == 0) { char e_buff[LY_MAXPATH], *p; p = param + 17; @@ -388,7 +388,7 @@ BOOL run_external(char *param, } } - if (strnicmp(cmdbuf, "start ", 6) == 0) + if (strncasecomp(cmdbuf, "start ", 6) == 0) redraw_flag = FALSE; else redraw_flag = TRUE; 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 */ diff --git a/src/LYUtils.c b/src/LYUtils.c index 0a1a9141..cf549e62 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYUtils.c,v 1.261 2013/11/28 11:35:34 tom Exp $ + * $LynxId: LYUtils.c,v 1.262 2013/11/29 00:04:25 tom Exp $ */ #include <HTUtils.h> #include <HTTCP.h> @@ -8009,7 +8009,7 @@ static int is_device(char *fname) i = 0; while (black_list[i] != NULL) { - if (stricmp(fname, black_list[i]) == 0) { + if (strcasecomp(fname, black_list[i]) == 0) { return 1; /* device file */ } i++; @@ -8055,7 +8055,7 @@ int unsafe_filename(const char *fname) i = 0; while (device_list[i] != NULL) { - if (stricmp(fname, device_list[i]) == 0) { + if (strcasecomp(fname, device_list[i]) == 0) { return 0; /* device file (open OK) */ } i++; diff --git a/src/UCAuto.c b/src/UCAuto.c index 81765f36..d6c064c9 100644 --- a/src/UCAuto.c +++ b/src/UCAuto.c @@ -1,5 +1,5 @@ /* - * $LynxId: UCAuto.c,v 1.52 2013/11/28 11:22:53 tom Exp $ + * $LynxId: UCAuto.c,v 1.53 2013/11/29 00:22:00 tom Exp $ * * This file contains code for changing the Linux console mode. * Currently some names for font files are hardwired in here. @@ -624,7 +624,7 @@ int Find_Best_Display_Charset(int ord) break; } /* At start of the source name */ - if (source && !strnicmp(name, s, n) && StrChr(" \t,", s[n])) { /* Found! */ + if (source && !strncasecomp(name, s, n) && StrChr(" \t,", s[n])) { /* Found! */ source = 0; s += n; continue; /* Look for the replacement */ diff --git a/src/Xsystem.c b/src/Xsystem.c index d5ee53c4..ac977c8a 100644 --- a/src/Xsystem.c +++ b/src/Xsystem.c @@ -1,4 +1,4 @@ -/* $LynxId: Xsystem.c,v 1.27 2013/07/21 00:18:04 tom Exp $ +/* $LynxId: Xsystem.c,v 1.28 2013/11/29 00:22:00 tom Exp $ * like system("cmd") but return with exit code of "cmd" * for Turbo-C/MS-C/LSI-C * This code is in the public domain. @@ -123,7 +123,7 @@ static int NEAR is_builtin_command(char *s) if (strcasecomp(s, cmdtab[i]) == 0) return 1; lc = strlen(cmdtab[i]); - if (lc < l && strnicmp(s, cmdtab[i], lc) == 0 && issep2(s[lc])) + if (lc < l && strncasecomp(s, cmdtab[i], lc) == 0 && issep2(s[lc])) return 1; } return 0; |