From 18024037b515bfff83e0230b35151babe6005e18 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 6 Nov 1998 16:18:09 -0500 Subject: snapshot of project "lynx", label v2-8-1dev_4 --- WWW/Library/Implementation/HTDOS.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'WWW/Library/Implementation/HTDOS.c') diff --git a/WWW/Library/Implementation/HTDOS.c b/WWW/Library/Implementation/HTDOS.c index 2004f97b..5e22915b 100644 --- a/WWW/Library/Implementation/HTDOS.c +++ b/WWW/Library/Implementation/HTDOS.c @@ -2,8 +2,9 @@ */ -#include -#include +#include +#include + /* PUBLIC HTDOS_wwwName() ** CONVERTS DOS Name into WWW Name @@ -66,11 +67,10 @@ char * HTDOS_name(char *wwwname) } } - /* Needed to surf the root of a local drive. */ - - if(strlen(cp_url) < 4) cp_url[2] = ':'; +/* if(strlen(cp_url) < 4) cp_url[] = ':'; if(strlen(cp_url) == 3) cp_url[3] = '\\'; - if(strlen(cp_url) == 4) cp_url[4] = '.'; + + if(strlen(cp_url) == 4) cp_url[4] = '.'; */ if((strlen(cp_url) > 2) && (cp_url[1] == '|')) cp_url[1] = ':'; @@ -81,18 +81,14 @@ char * HTDOS_name(char *wwwname) printf("\n\n%s = i%\n\n",cp_url,strlen(cp_url)); sleep(5); #endif - CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", - wwwname, cp_url); strcpy(wwwname, cp_url); - return(wwwname); /* return(cp_url); */ + return(wwwname); /* return(cp_url); */ } else { #if 0 printf("\n\n%s = %i\n\n",cp_url+1,strlen(cp_url)); sleep(5); #endif - CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", - wwwname, cp_url+1); strcpy(wwwname, cp_url+1); - return(wwwname); /* return(cp_url+1); */ + return(wwwname); /* return(cp_url+1); */ } } -- cgit 1.4.1-2-gfad0