Browse Source

fixed mingw build error

pull/304/head
orignal 9 years ago
parent
commit
50dda4263f
  1. 2
      util.cpp

2
util.cpp

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

Loading…
Cancel
Save