aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>1999-02-03 20:24:53 +0000
committerBill Fenner <fenner@FreeBSD.org>1999-02-03 20:24:53 +0000
commit93eb50393dfea7ab2f4d8b031f7072e2d8cf9bd2 (patch)
treed237feee80dcdcdc9b24bba03e69596c18804021
parentf1689b7f230228fec6408426f96832b9e0b7de3d (diff)
Notes
-rw-r--r--usr.bin/fetch/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index 2f08c1d2be0f..e6795eb593b9 100644
--- a/usr.bin/fetch/http.c
+++ b/usr.bin/fetch/http.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: http.c,v 1.23 1999/01/15 16:56:22 wollman Exp $
+ * $Id: http.c,v 1.24 1999/01/15 17:10:31 wollman Exp $
*/
#include <sys/types.h>
@@ -165,7 +165,7 @@ http_parse(struct fetch_state *fs, const char *u)
strncat(hostname, p, q - p);
p = slash;
- if (colon && colon + 1 != slash) {
+ if (q == colon && colon + 1 != slash) {
unsigned long ul;
char *ep;