mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-16 14:28:43 +00:00
Fixed: Warning (wrong size)
This commit is contained in:
parent
dbca2d1802
commit
e240d8e099
1 changed files with 2 additions and 2 deletions
|
@ -323,12 +323,12 @@ void CInetAddress::init()
|
||||||
|
|
||||||
// IPv4
|
// IPv4
|
||||||
_SockAddr = new sockaddr_in;
|
_SockAddr = new sockaddr_in;
|
||||||
memset(_SockAddr, 0, sizeof(_SockAddr));
|
memset(_SockAddr, 0, sizeof(sockaddr_in));
|
||||||
_SockAddr->sin_family = AF_INET;
|
_SockAddr->sin_family = AF_INET;
|
||||||
|
|
||||||
// IPv6
|
// IPv6
|
||||||
_SockAddr6 = new sockaddr_in6;
|
_SockAddr6 = new sockaddr_in6;
|
||||||
memset(_SockAddr6, 0, sizeof(_SockAddr6));
|
memset(_SockAddr6, 0, sizeof(sockaddr_in6));
|
||||||
_SockAddr6->sin6_family = AF_INET6;
|
_SockAddr6->sin6_family = AF_INET6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue