From 73c930881f7acabc9bea99eb698d0824cbe22c3e Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 8 Mar 2014 18:46:39 +0200 Subject: avoid some strncpy usage --- include/enet/enet.h | 2 -- include/enet/win32.h | 1 - 2 files changed, 3 deletions(-) (limited to 'include') diff --git a/include/enet/enet.h b/include/enet/enet.h index dd51e95..948f44e 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -517,7 +517,6 @@ ENET_API int enet_address_set_host (ENetAddress * address, const char * hostName @returns the null-terminated name of the host in hostName on success @retval 0 on success @retval < 0 on failure - @remarks if the name's length matches or exceeds nameLength, the result may not be null-terminated */ ENET_API int enet_address_get_host_ip (const ENetAddress * address, char * hostName, size_t nameLength); @@ -528,7 +527,6 @@ ENET_API int enet_address_get_host_ip (const ENetAddress * address, char * hostN @returns the null-terminated name of the host in hostName on success @retval 0 on success @retval < 0 on failure - @remarks if the name's length matches or exceeds nameLength, the result may not be null-terminated */ ENET_API int enet_address_get_host (const ENetAddress * address, char * hostName, size_t nameLength); diff --git a/include/enet/win32.h b/include/enet/win32.h index d8968ee..e73ca9d 100644 --- a/include/enet/win32.h +++ b/include/enet/win32.h @@ -7,7 +7,6 @@ #ifdef _MSC_VER #ifdef ENET_BUILDING_LIB -#pragma warning (disable: 4996) // 'strncpy' was declared deprecated #pragma warning (disable: 4267) // size_t to int conversion #pragma warning (disable: 4244) // 64bit to 32bit int #pragma warning (disable: 4018) // signed/unsigned mismatch -- cgit v1.2.3