Skip to content

Commit

Permalink
Address compiler warning on older gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishcoleman committed Jul 5, 2023
1 parent 183e0c9 commit 6957b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/n2n.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6957b16

Please sign in to comment.