Minor compatibility fix

This commit is contained in:
Yang Tse 2006-08-04 17:35:05 +00:00
parent cca00a6378
commit 646a6b604f
2 changed files with 5 additions and 5 deletions

View file

@ -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));