summaryrefslogtreecommitdiff
path: root/lib/inet_ntop.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-08-04 17:35:05 +0000
committerYang Tse <yangsita@gmail.com>2006-08-04 17:35:05 +0000
commit646a6b604fefbdc019d9e7ff1f1cb1f171c9dcc3 (patch)
tree2fcba6d61b750efc3a9c4a2686f4d2313dd3689d /lib/inet_ntop.c
parentcca00a63781934492caa8b46f8a9e56035a6e6fe (diff)
downloadcurl-646a6b604fefbdc019d9e7ff1f1cb1f171c9dcc3.tar.gz
Minor compatibility fix
Diffstat (limited to 'lib/inet_ntop.c')
-rw-r--r--lib/inet_ntop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c
index b6c9716d4..3bbd9eb14 100644
--- a/lib/inet_ntop.c
+++ b/lib/inet_ntop.c
@@ -119,7 +119,7 @@ static char *inet_ntop6 (const unsigned char *src, char *dst, size_t size)
* Copy the input (bytewise) array into a wordwise array.
* Find the longest run of 0x00's in src[] for :: shorthanding.
*/
- memset(words, 0, sizeof(words));
+ memset(words, '\0', sizeof(words));
for (i = 0; i < IN6ADDRSZ; i++)
words[i/2] |= (src[i] << ((1 - (i % 2)) << 3));