fixed mingw build error

This commit is contained in:
orignal 2015-11-20 11:42:38 -05:00
parent a8f2239495
commit 50dda4263f

View File

@ -41,7 +41,7 @@ http://stackoverflow.com/questions/15660203/inet-pton-identifier-not-found */
char src_copy[INET6_ADDRSTRLEN + 1]; char src_copy[INET6_ADDRSTRLEN + 1];
ZeroMemory (&ss, sizeof (ss)); ZeroMemory (&ss, sizeof (ss));
strncpy_s (src_copy, src, INET6_ADDRSTRLEN + 1); strncpy (src_copy, src, INET6_ADDRSTRLEN + 1);
src_copy[INET6_ADDRSTRLEN] = 0; src_copy[INET6_ADDRSTRLEN] = 0;
if (WSAStringToAddress (src_copy, af, NULL, (struct sockaddr *)&ss, &size) == 0) if (WSAStringToAddress (src_copy, af, NULL, (struct sockaddr *)&ss, &size) == 0)