aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2014-03-08 18:46:39 +0200
committerLee Salzman <[email protected]>2014-03-08 18:46:39 +0200
commit73c930881f7acabc9bea99eb698d0824cbe22c3e (patch)
treeedd210e87e2a4eab7bd7ae2112c72732e6b04519 /include
parent5721b667f2d57d1c8b65ef5575379f6756ec2938 (diff)
downloadenet-73c930881f7acabc9bea99eb698d0824cbe22c3e.tar.gz
enet-73c930881f7acabc9bea99eb698d0824cbe22c3e.zip
avoid some strncpy usage
Diffstat (limited to 'include')
-rw-r--r--include/enet/enet.h2
-rw-r--r--include/enet/win32.h1
2 files changed, 0 insertions, 3 deletions
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