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:
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))