compile fix (#846)

This commit is contained in:
Logan oos Even 2021-10-07 14:05:29 +05:45 committed by GitHub
parent 50d4273272
commit 5f3c27e3a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,7 @@ void init_common(n2n_common_t *common, char *community) {
common->ttl = N2N_DEFAULT_TTL;
common->flags = 0;
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) {