mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:43:31 +03:00
Minor compatibility fix
This commit is contained in:
parent
cca00a6378
commit
646a6b604f
2 changed files with 5 additions and 5 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue