mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 00:21:11 +02:00
compile fix (#846)
This commit is contained in:
parent
50d4273272
commit
5f3c27e3a6
|
@ -69,7 +69,8 @@ void init_common(n2n_common_t *common, char *community) {
|
|||
memset( common, 0, sizeof(*common) );
|
||||
common->ttl = N2N_DEFAULT_TTL;
|
||||
common->flags = 0;
|
||||
strncpy( (char *)common->community, community, N2N_COMMUNITY_SIZE );
|
||||
strncpy( (char *)common->community, community, N2N_COMMUNITY_SIZE);
|
||||
common->community[N2N_COMMUNITY_SIZE - 1] = '\0';
|
||||
}
|
||||
|
||||
void print_common(char *test_name, n2n_common_t *common) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user