Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-27 18:20:27 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-03-27 18:20:27 +0300
commit6f0c3cc88a2818a14b222c7e0abdfb1f944ef863 (patch)
treedb9a49b8c9be9d69d9a7c5a198ebab803b5b3be4 /winsup/cygwin/net.cc
parente5d5e036fddd3da07ab445c75ece29cd5259e43f (diff)
* net.cc (inet_ntop6): Convert to lowercase hex digits on the fly.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc7
1 files changed, 6 insertions, 1 deletions
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))