diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-07-22 11:57:03 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-07-22 11:57:03 -0400 |
commit | 36863953e4886d5269a325c93bd433847694a5fb (patch) | |
tree | 485d1197eea38785b908bcdc1e0f228ab90b80e1 /src/LYUtils.c | |
parent | 57bfc74ff4ec4c2980b2330f2badc54a8990842d (diff) | |
download | lynx-snapshots-36863953e4886d5269a325c93bd433847694a5fb.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-38
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r-- | src/LYUtils.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c index 5d22ca60..5aef9fde 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -181,8 +181,6 @@ PUBLIC void highlight ARGS3( (links[cur].hightext ? links[cur].hightext : ""), LYcols-links[cur].lx-1); -#define LYmbcsstrncpy(dest,src,n,n_glyphs,enc) LYstrncpy(dest, src, n) -#define LYmbcsstrlen(str,utf_flag) strlen(str) #endif /* EXP_CHARTRANS */ addstr(buffer); } @@ -2310,15 +2308,6 @@ PUBLIC int is_url ARGS1( return(0); /* - * Can't be a URL if it starts with a slash. - * So return immediately for this common case, - * also to avoid false positives if there is a - * colon later in the string. - kw - */ - if (*cp == '/') - return(0); - - /* * Can't be a URL if it lacks a colon. */ if (NULL == strchr(cp, ':')) @@ -2330,6 +2319,15 @@ PUBLIC int is_url ARGS1( while (isspace((unsigned char)*cp)) cp++; + /* + * Can't be a URL if it starts with a slash. + * So return immediately for this common case, + * also to avoid false positives if there was + * a colon later in the string. - KW + */ + if (*cp == '/') + return(0); + #ifdef DOSPATH /* sorry! */ if (strncmp(cp, "file:///", 8) && strlen(cp) == 19 && cp[strlen(cp)-1] == ':') |