From 9637dbfffdb42f5478cf8c0afe337f559513a7fe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 Sep 2019 11:51:51 +0200 Subject: urlapi: one colon is enough for the strspn() input (typo) --- lib/urlapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/urlapi.c b/lib/urlapi.c index 03efccd7b..a0ee331da 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -597,7 +597,7 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname) if(hostname[0] == '[') { char dest[16]; /* fits a binary IPv6 address */ - const char *l = "0123456789abcdefABCDEF::."; + const char *l = "0123456789abcdefABCDEF:."; hostname++; hlen -= 2; -- cgit v1.2.1