mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
forgot extra storage for NULL byte
This commit is contained in:
parent
ff575a3460
commit
4f02450bf9
@ -577,7 +577,7 @@ static void netplay_announce_cb(void *task_data, void *user_data, const char *er
|
||||
|
||||
netplay_driver_ctl(RARCH_NETPLAY_CTL_ENABLE_CLIENT, NULL);
|
||||
|
||||
host_string = (char*)calloc(1, ip_len + port_len + 1);
|
||||
host_string = (char*)calloc(1, ip_len + port_len + 2);
|
||||
|
||||
memcpy(host_string, mitm_ip, ip_len);
|
||||
memcpy(host_string + ip_len, ":", 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user