diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/urldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |