diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-05-03 21:27:00 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-05-03 21:27:00 -0400 |
commit | ee5cdfe9af88df5a276ac105bf757a6967522b7a (patch) | |
tree | 2b5d0281e9764d3e8353e62935c70da3208fbbd2 /WWW/Library/Implementation/HTFTP.c | |
parent | 62e34428d357f609be17a866638bedb45f935d8e (diff) | |
download | lynx-snapshots-ee5cdfe9af88df5a276ac105bf757a6967522b7a.tar.gz |
snapshot of project "lynx", label v2-8-1dev_9
Diffstat (limited to 'WWW/Library/Implementation/HTFTP.c')
-rw-r--r-- | WWW/Library/Implementation/HTFTP.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index 0c83e42d..1970b03d 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -265,14 +265,15 @@ PUBLIC char * HTMake_VMS_name ARGS2( strcpy(nodename, ""); /* On same node? Yes if node names match */ if (strncmp(nn, "localhost", 9)) { CONST char *p; - char *q; - for (p = hostname, q = (char *)nn; + CONST char *q; + for (p = hostname, q = nn; *p && *p != '.' && *q && *q != '.'; p++, q++){ if (TOUPPER(*p) != TOUPPER(*q)) { + char *r; strcpy(nodename, nn); - q = strchr(nodename, '.'); /* Mismatch */ - if (q) - *q = '\0'; /* Chop domain */ + r = strchr(nodename, '.'); /* Mismatch */ + if (r) + *r = '\0'; /* Chop domain */ strcat(nodename, "::"); /* Try decnet anyway */ break; } @@ -1402,7 +1403,8 @@ PRIVATE void parse_vms_dir_entry ARGS2( char *, line, EntryInfo *, entry_info) { - int i, j, ialloc; + int i, j; + unsigned int ialloc; char *cp, *cpd, *cps, date[16], *sp = " "; /** Get rid of blank lines, and information lines. **/ |