From e240d8e099f9490f9fa280e4451ae29a996abd8b Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 15 Feb 2016 11:54:28 +0100 Subject: [PATCH] Fixed: Warning (wrong size) --- code/nel/src/net/inet_address.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/net/inet_address.cpp b/code/nel/src/net/inet_address.cpp index 79224b1ee..9dc7f5d00 100644 --- a/code/nel/src/net/inet_address.cpp +++ b/code/nel/src/net/inet_address.cpp @@ -323,12 +323,12 @@ void CInetAddress::init() // IPv4 _SockAddr = new sockaddr_in; - memset(_SockAddr, 0, sizeof(_SockAddr)); + memset(_SockAddr, 0, sizeof(sockaddr_in)); _SockAddr->sin_family = AF_INET; // IPv6 _SockAddr6 = new sockaddr_in6; - memset(_SockAddr6, 0, sizeof(_SockAddr6)); + memset(_SockAddr6, 0, sizeof(sockaddr_in6)); _SockAddr6->sin6_family = AF_INET6; }