diff options
author | Yang Tse <yangsita@gmail.com> | 2006-08-04 17:35:05 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-08-04 17:35:05 +0000 |
commit | 646a6b604fefbdc019d9e7ff1f1cb1f171c9dcc3 (patch) | |
tree | 2fcba6d61b750efc3a9c4a2686f4d2313dd3689d /lib/inet_ntop.c | |
parent | cca00a63781934492caa8b46f8a9e56035a6e6fe (diff) | |
download | curl-646a6b604fefbdc019d9e7ff1f1cb1f171c9dcc3.tar.gz |
Minor compatibility fix
Diffstat (limited to 'lib/inet_ntop.c')
-rw-r--r-- | lib/inet_ntop.c | 2 |
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)); |