mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
use correct size here
This commit is contained in:
parent
9b673152f7
commit
11611acbe4
@ -167,7 +167,7 @@ bool netplay_discovery_driver_ctl(enum rarch_netplay_discovery_ctl_state state,
|
||||
|
||||
/* And send it off */
|
||||
ret = sendto(lan_ad_client_fd, (const char *) &ad_packet_buffer,
|
||||
2*sizeof(uint32_t) + NETPLAY_HOST_STR_LEN, 0, addr->ai_addr, addr->ai_addrlen);
|
||||
sizeof(struct ad_packet), 0, addr->ai_addr, addr->ai_addrlen);
|
||||
if (ret < (ssize_t) (2*sizeof(uint32_t)))
|
||||
RARCH_WARN("[discovery] Failed to send netplay discovery query (error: %d)\n", ret);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user