rap: list open connections with full host (#10205)

This commit is contained in:
Arnaud Lefebvre 2018-05-28 11:35:50 +02:00 committed by radare
parent 3d6efce76d
commit f6616578a2

View File

@ -1572,7 +1572,7 @@ R_API void r_core_rtr_add(RCore *core, const char *_input) {
continue;
}
rtr_host[i].proto = proto;
strncpy (rtr_host[i].host, host, sizeof (rtr_host[i].proto)-1);
strncpy (rtr_host[i].host, host, sizeof (rtr_host[i].host)-1);
rtr_host[i].port = r_num_get (core->num, port);
strncpy (rtr_host[i].file, file, sizeof (rtr_host[i].file)-1);
rtr_host[i].fd = fd;