From 1a7dffdac67c97c556c90dc211cfb0c3ba499b63 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sun, 5 Dec 2010 14:23:30 +0000 Subject: Brain fix on last night's IPv6 modifications svn path=/trunk/netsurf/; revision=11000 --- content/urldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/urldb.c') diff --git a/content/urldb.c b/content/urldb.c index 6ba56f41e..ef0222d2e 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -792,7 +792,7 @@ bool urldb_add_url(const char *url) /* get port and remove from host */ port = 0; - if (host[strlen(host)] != ']') { + if (host[strlen(host) - 1] != ']') { colon = strrchr(host, ':'); if (colon) { *colon = '\0'; -- cgit v1.2.3