mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Revert "(Cthulhu88) Fix for multi-char arrays"
This reverts commit e64cd247150de4cadaab62a574d219eef3fdbd84.
This commit is contained in:
parent
fc460dbb9c
commit
753332ff18
@ -191,7 +191,7 @@ struct netplay_host_list
|
||||
struct netplay_mitm_pending
|
||||
{
|
||||
int *fds;
|
||||
uint8_t *ids[NETPLAY_MITM_MAX_PENDING];
|
||||
uint8_t *ids[NETPLAY_MITM_ID_SIZE];
|
||||
retro_time_t *timeouts;
|
||||
|
||||
int current;
|
||||
|
@ -5832,15 +5832,11 @@ static int init_tcp_connection(const struct addrinfo *res,
|
||||
|
||||
if (fds && ids && timeouts)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
memset(fds, -1,
|
||||
NETPLAY_MITM_MAX_PENDING * sizeof(*fds));
|
||||
|
||||
for (i = 0; i < NETPLAY_MITM_MAX_PENDING; i++, ids += NETPLAY_MITM_ID_SIZE)
|
||||
net_st->mitm_pending.ids[i] = ids;
|
||||
|
||||
net_st->mitm_pending.fds = fds;
|
||||
net_st->mitm_pending.ids = ids;
|
||||
net_st->mitm_pending.timeouts = timeouts;
|
||||
|
||||
net_st->mitm_pending.current = 0;
|
||||
@ -7604,11 +7600,7 @@ void deinit_netplay(void)
|
||||
net_st->mitm_pending.fds = NULL;
|
||||
}
|
||||
if (net_st->mitm_pending.ids)
|
||||
{
|
||||
free(net_st->mitm_pending.ids[0]);
|
||||
memset(net_st->mitm_pending.ids, 0,
|
||||
sizeof(net_st->mitm_pending.ids));
|
||||
}
|
||||
free(*net_st->mitm_pending.ids);
|
||||
if (net_st->mitm_pending.timeouts)
|
||||
{
|
||||
free(net_st->mitm_pending.timeouts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user