summaryrefslogtreecommitdiff
path: root/www/lynx-current/patches/patch-ae
blob: e3799411b6cf90884966dc539c916c81b6cb6cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ae,v 1.4 2002/05/04 17:06:49 fredb Exp $

--- WWW/Library/Implementation/HTParse.c.orig	Sun Apr  1 19:51:46 2001
+++ WWW/Library/Implementation/HTParse.c
@@ -291,7 +291,7 @@
 		char *p2, *h;
 		if ((p2 = strchr(result, '@')) != NULL)
 		   tail = (p2 + 1);
-		p2 = strchr(tail, ':');
+		p2 = strrchr(tail, ':');
 		if (p2 != NULL && !isdigit(UCH(p2[1])))
 		    /*
 		    **	Colon not followed by a port number.