diff options
Diffstat (limited to 'src/network/getaddrinfo.c')
-rw-r--r-- | src/network/getaddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/getaddrinfo.c b/src/network/getaddrinfo.c index 90e85f6a..8126236b 100644 --- a/src/network/getaddrinfo.c +++ b/src/network/getaddrinfo.c @@ -13,7 +13,7 @@ static int is_valid(const char *host) { const unsigned char *s; if (strlen(host)-1 > 254 || mbstowcs(0, host, 0) > 255) return 0; - for (s=host; *s>=0x80 || *s=='.' || *s=='-' || isalnum(*s); s++); + for (s=(void *)host; *s>=0x80 || *s=='.' || *s=='-' || isalnum(*s); s++); return !*s; } |