mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 08:31:03 +00:00
memcpy size fix from Spike
This commit is contained in:
parent
97bccd3be6
commit
693d9fed3e
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ int UDP_GetSocketAddr (sys_socket_t socketid, struct qsockaddr *addr)
|
||||||
{
|
{
|
||||||
static const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
|
static const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
|
||||||
if (!memcmp(&((struct sockaddr_in6 *)addr)->sin6_addr, &in6addr_any, sizeof(in6addr_any)))
|
if (!memcmp(&((struct sockaddr_in6 *)addr)->sin6_addr, &in6addr_any, sizeof(in6addr_any)))
|
||||||
memcpy(&((struct sockaddr_in6 *)addr)->sin6_addr, &myAddrv6, sizeof(struct sockaddr_in6));
|
memcpy(&((struct sockaddr_in6 *)addr)->sin6_addr, &myAddrv6, sizeof(((struct sockaddr_in6 *)addr)->sin6_addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue