From b902a2f2a7438810cdcb053568ed5c27089b1e8a Mon Sep 17 00:00:00 2001 From: Dualtagh Murray Date: Thu, 4 Oct 2018 14:38:52 +0100 Subject: Fixing warnings generated by MSVC Fixes #22684. --- modules/websocket/lws_client.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/websocket/lws_client.cpp') diff --git a/modules/websocket/lws_client.cpp b/modules/websocket/lws_client.cpp index b3e5f6ffab..add3931b50 100644 --- a/modules/websocket/lws_client.cpp +++ b/modules/websocket/lws_client.cpp @@ -34,6 +34,10 @@ #include "core/io/stream_peer_ssl.h" #include "tls/mbedtls/wrapper/include/openssl/ssl.h" +#if defined(MINGW_ENABLED) || defined(_MSC_VER) +#define strncpy strncpy_s +#endif + Error LWSClient::connect_to_host(String p_host, String p_path, uint16_t p_port, bool p_ssl, PoolVector p_protocols) { ERR_FAIL_COND_V(context != NULL, FAILED); -- cgit v1.2.3