From 50dda4263f216642ab3276f4c27d72811839a41c Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 20 Nov 2015 11:42:38 -0500 Subject: [PATCH] fixed mingw build error --- util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index 244413ab..b2faddc2 100644 --- a/util.cpp +++ b/util.cpp @@ -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)