From 646a6b604fefbdc019d9e7ff1f1cb1f171c9dcc3 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 4 Aug 2006 17:35:05 +0000 Subject: Minor compatibility fix --- lib/inet_ntop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/inet_ntop.c') 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)); -- cgit v1.2.3