summaryrefslogtreecommitdiff
path: root/www/lynx/patches/patch-ae
blob: e2f17ac98758bf5312d14fc50232b840024e9fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ae,v 1.2 2004/03/03 14:01:00 adam Exp $

--- WWW/Library/Implementation/HTParse.c.orig	2004-02-02 20:02:28.000000000 +0000
+++ WWW/Library/Implementation/HTParse.c
@@ -329,7 +329,7 @@ PUBLIC char * HTParse ARGS3(
 		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.