From 693d9fed3e9626b2e176348ce1b8e78a97cd0d0e Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 29 Oct 2016 12:49:45 -0600 Subject: [PATCH] memcpy size fix from Spike --- quakespasm/Quake/net_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quakespasm/Quake/net_udp.c b/quakespasm/Quake/net_udp.c index 82695a13..da5996ee 100644 --- a/quakespasm/Quake/net_udp.c +++ b/quakespasm/Quake/net_udp.c @@ -440,7 +440,7 @@ int UDP_GetSocketAddr (sys_socket_t socketid, struct qsockaddr *addr) { static const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; 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;