about summary refs log tree commit diff stats
path: root/WWW
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-03-04 19:00:00 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-03-04 19:00:00 -0500
commite9b52cbfe84bc9e13568e784836c9e0b4b1e0913 (patch)
treec3174e1d8d535e0e82e22dfad2bb803bef288cdd /WWW
parent349da2fb30fd6d2be4bd47a95fee9915b50f6d67 (diff)
downloadlynx-snapshots-e9b52cbfe84bc9e13568e784836c9e0b4b1e0913.tar.gz
snapshot of project "lynx", label v2-8pre_3
Diffstat (limited to 'WWW')
-rw-r--r--WWW/Library/Implementation/HTDOS.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/WWW/Library/Implementation/HTDOS.c b/WWW/Library/Implementation/HTDOS.c
index 8b559183..ce866bfe 100644
--- a/WWW/Library/Implementation/HTDOS.c
+++ b/WWW/Library/Implementation/HTDOS.c
@@ -23,16 +23,16 @@ char * HTDOS_wwwName (char *dosname)
 	strcpy(wwwname,dosname);
 
 	for ( ; *cp_url != '\0' ; cp_url++)
-	  if(*cp_url == '\\') *cp_url = '/';
+	  if(*cp_url == '\\') *cp_url = '/';   /* convert dos backslash to unix-style */
 
-	 if(strlen(wwwname) > 3 && *cp_url == '/')
+	if(strlen(wwwname) > 3 && *cp_url == '/')
 		*cp_url = '\0';
 
-	 if(*cp_url == ':')
-	 {
+	if(*cp_url == ':')
+	{
 		cp_url++;
 		*cp_url = '/';
-	 }
+	}
 
 /*
 	if((strlen(wwwname)>2)&&(wwwname[1]==':')) wwwname[1]='|';
@@ -59,7 +59,7 @@ char * HTDOS_name(char *wwwname)
 	int joe;
 
 	memset(cp_url, 0, 1023);
-/*	strset(cp_url,0); */
+/*	strset(cp_url,0);                 */
 	sprintf(cp_url, "%s",wwwname);
 
 	for(joe = 0; cp_url[joe] != '\0'; joe++)	{
@@ -89,7 +89,7 @@ char * HTDOS_name(char *wwwname)
 		printf("\n\n%s = %i\n\n",cp_url+1,strlen(cp_url));
 		sleep(5);
 #endif
-		strcpy(wwwname, cp_url+1);
+      strcpy(wwwname, cp_url+1);
       return(wwwname); /* return(cp_url+1);  */
 	}
 }