
From: Gilles Detillieux <grdetil@scrc.umanitoba.ca>
To: htdig@htdig.org
Subject: [htdig] Patch

Fix PR#566 by setting the correct length of the string being
matched. 'http://' is 7 characters. Submitted by
<wolfgang.pichler@creditanstalt.co.at>.

--- htdig-3.1.2.bak/htlib/URL.cc	Wed Apr 21 21:47:58 1999
+++ htdig-3.1.2/htlib/URL.cc	Fri Jul 30 14:51:32 1999
@@ -130,7 +130,7 @@ URL::URL(char *ref, URL &parent)
     while (isalpha(*p))
 	p++;
     int	hasService = (*p == ':');
-    if (hasService && ((strncmp(ref, "http://", 6) == 0) ||
+    if (hasService && ((strncmp(ref, "http://", 7) == 0) ||
 		       (strncmp(ref, "http:", 5) != 0)))
     {
 	//

