1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 05:58:01 -05: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

View File

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