Commit 67f27824 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix GCC -Wstringop-truncation

parent 1a9b6c4c
......@@ -4544,6 +4544,7 @@ SPIDER_IP_PORT_CONN* spider_create_ipport_conn(SPIDER_CONN *conn)
memcpy(ret->key, conn->conn_key, ret->key_len);
strncpy(ret->remote_ip_str, conn->tgt_host, sizeof(ret->remote_ip_str));
ret->remote_ip_str[sizeof ret->remote_ip_str - 1] = '\0';
ret->remote_port = conn->tgt_port;
ret->conn_id = conn->conn_id;
ret->ip_port_count = 1; // init
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment