From 6f0c3cc88a2818a14b222c7e0abdfb1f944ef863 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 27 Mar 2009 15:20:27 +0000 Subject: * net.cc (inet_ntop6): Convert to lowercase hex digits on the fly. --- winsup/cygwin/net.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index d8294513e..4ea6ffedf 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -3083,7 +3083,12 @@ inet_ntop6 (const u_char *src, char *dst, size_t size) break; } __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? */ if (best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ)) -- cgit v1.2.3