about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTP.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2021-06-10 00:37:08 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2021-06-10 00:37:08 +0000
commit15b5916ed82c8de48b85d7b7afe670cb00e79796 (patch)
treeb7891e7faa9ffaa27911b367d0551a38d03a53a6 /WWW/Library/Implementation/HTTP.c
parentc2036b385da968e77c3abbefa44cb4c88eff9512 (diff)
downloadlynx-snapshots-15b5916ed82c8de48b85d7b7afe670cb00e79796.tar.gz
snapshot of project "lynx", label v2-9-0dev_6j
Diffstat (limited to 'WWW/Library/Implementation/HTTP.c')
-rw-r--r--WWW/Library/Implementation/HTTP.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index 7e0234aa..07e30d74 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTP.c,v 1.178 2020/01/21 22:09:33 tom Exp $
+ * $LynxId: HTTP.c,v 1.179 2021/06/08 23:28:23 tom Exp $
  *
  * HyperText Transfer Protocol	- Client implementation		HTTP.c
  * ===========================
@@ -755,7 +755,9 @@ static char *StripIpv6Brackets(char *host)
 	p = host + strlen(host) - 1;
 	if (*p == ']') {
 	    *p = '\0';
-	    ++host;
+	    for (p = host; (p[0] = p[1]) != '\0'; ++p) {
+		;		/* EMPTY */
+	    }
 	}
     }
     return host;