Browse Source

compile fix (#846)

pull/850/head
Logan oos Even 3 years ago
committed by GitHub
parent
commit
5f3c27e3a6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      tools/tests-wire.c

1
tools/tests-wire.c

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

Loading…
Cancel
Save