2
0
mirror of https://github.com/curl/curl.git synced 2025-03-13 15:37:04 +08:00

urlapi: one colon is enough for the strspn() input (typo)

This commit is contained in:
Daniel Stenberg 2019-09-10 11:51:51 +02:00
parent eab3c580f9
commit 9637dbfffd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

@ -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;