[PATCH] Fix crash in ws_sockaddr_ws2u
25 Jan
2004
25 Jan
'04
7:34 p.m.
This fixes a recent change to the socket code that made it into 20041212. For instance, the bug causes Half-Life to blow up at the multiplayer LAN game screen. Can't we test, or at least *proofread* our code? --- dlls/winsock/socket.c-old 2004-01-25 14:03:41.000000000 -0500 +++ dlls/winsock/socket.c 2004-01-25 14:03:29.000000000 -0500 @@ -729,7 +729,7 @@ *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
8075
Age (days ago)
8075
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexey Spiridonov