Fixed typo in ws_sockaddr_u2ws().
This commit is contained in:
parent
20d0e80e61
commit
7f5c0de965
|
@ -1076,7 +1076,7 @@ static int ws_sockaddr_u2ws(const struct sockaddr* uaddr, int uaddrlen, struct W
|
|||
win->sin_family = WS_AF_INET;
|
||||
win->sin_port = uin->sin_port;
|
||||
memcpy(&win->sin_addr,&uin->sin_addr,4); /* 4 bytes = 32 address bits */
|
||||
*wsaddrlen = sizeof(struct WS_sockaddr_in6);
|
||||
*wsaddrlen = sizeof(struct WS_sockaddr_in);
|
||||
return 0;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue