From: Daniel Stenberg Date: Tue, 10 Sep 2019 09:51:51 +0000 (+0200) Subject: urlapi: one colon is enough for the strspn() input (typo) X-Git-Tag: curl-7_66_0~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9637dbfffdb42f5478cf8c0afe337f559513a7fe;p=curl urlapi: one colon is enough for the strspn() input (typo) --- 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;