Fixed: Warning (wrong size)

--HG--
branch : develop
This commit is contained in:
kervala 2016-02-15 11:54:28 +01:00
parent fdd5f69e2d
commit 2330fc26ec

View file

@ -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;
}