* net.cc (inet_ntop6): Convert to lowercase hex digits on the fly.
This commit is contained in:
parent
e5d5e036fd
commit
6f0c3cc88a
|
@ -1,3 +1,7 @@
|
||||||
|
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* net.cc (inet_ntop6): Convert to lowercase hex digits on the fly.
|
||||||
|
|
||||||
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
|
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* net.cc (cygwin_getaddrinfo): Check hints for non-NULL before
|
* net.cc (cygwin_getaddrinfo): Check hints for non-NULL before
|
||||||
|
|
|
@ -3083,7 +3083,12 @@ inet_ntop6 (const u_char *src, char *dst, size_t size)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
__small_sprintf(tp, "%x", words[i]);
|
__small_sprintf(tp, "%x", words[i]);
|
||||||
tp += strlen(tp);
|
while (*tp)
|
||||||
|
{
|
||||||
|
if (isupper (*tp))
|
||||||
|
*tp = _tolower (*tp);
|
||||||
|
++tp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* Was it a trailing run of 0x00's? */
|
/* Was it a trailing run of 0x00's? */
|
||||||
if (best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ))
|
if (best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ))
|
||||||
|
|
Loading…
Reference in New Issue