Fixed typo in memset call.
This commit is contained in:
parent
69c047a10c
commit
333ecf3b75
|
@ -729,7 +729,7 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr,
|
|||
|
||||
*uaddrlen=sizeof(struct sockaddr_ipx);
|
||||
uipx=malloc(*uaddrlen);
|
||||
memset(&uipx,0,sizeof(uipx));
|
||||
memset(uipx,0,sizeof(*uipx));
|
||||
uipx->sipx_family=AF_IPX;
|
||||
uipx->sipx_port=wsipx->sa_socket;
|
||||
/* copy sa_netnum and sa_nodenum to sipx_network and sipx_node
|
||||
|
|
Loading…
Reference in New Issue