mirror of
https://github.com/ntop/n2n.git
synced 2024-04-21 16:31:34 +00:00
Address compiler warning on older gcc
This commit is contained in:
@@ -742,7 +742,7 @@ extern char * sock_to_cstr (n2n_sock_str_t out,
|
||||
memset(out, 0, N2N_SOCKBUF_SIZE);
|
||||
|
||||
if(AF_INET6 == sock->family) {
|
||||
char tmp[sizeof(n2n_sock_str_t)];
|
||||
char tmp[INET6_ADDRSTRLEN+1];
|
||||
|
||||
tmp[0] = '\0';
|
||||
inet_ntop(AF_INET6, sock->addr.v6, tmp, sizeof(n2n_sock_str_t));
|
||||
|
||||
Reference in New Issue
Block a user