(Netplay/UPnP) Delay lobby server announcing (#13473)

Delay the announcing in order to give UPnP's port forwarding more time.

Fix the remaining truncation warnings.
This commit is contained in:
Cthulhu-throwaway 2022-01-11 04:48:59 -03:00 committed by GitHub
parent 310c43d7ad
commit 4cf1bcf70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -746,7 +746,7 @@ bool natt_open_port(struct natt_device *device,
"</u:%s>"
"</s:Body>"
"</s:Envelope>";
char buf[1024];
char buf[1280];
const char *action;
char host[256], port[6];

View File

@ -615,7 +615,7 @@ static bool netplay_lan_ad_server(netplay_t *netplay)
&addr_size) == sizeof(header))
{
const frontend_ctx_driver_t *frontend_drv;
char frontend_architecture_tmp[32];
char frontend_architecture_tmp[24];
uint32_t content_crc = 0;
struct retro_system_info *system = &runloop_state_get_ptr()->system.info;
struct string_list *subsystem = path_get_subsystem_list();
@ -8437,8 +8437,8 @@ bool init_netplay(const char *server, unsigned port, const char *mitm_session)
return false;
net_st->chat->message_slots = ARRAY_SIZE(net_st->chat->messages);
net_st->reannounce = -1;
net_st->reping = -1;
net_st->reannounce = 900;
net_st->reping = -1;
if (net_st->data->is_server)
{