diff --git a/src/node.c b/src/node.c index 585d874..859b661 100644 --- a/src/node.c +++ b/src/node.c @@ -984,7 +984,11 @@ int work_with_tlvs(char * data, uint16_t total_packet_len, struct sockaddr_in6 * printf("%lu\n", cur_tlv.node_state->node_id ); printf("%hu\n", cur_tlv.node_state->seqno ); printf("%.16s\n", cur_tlv.node_state->node_hash); - printf("%s\n", cur_tlv.node_state->data); + printf("%s\0\n", cur_tlv.node_state->data); + + sprintf(warn, ">> WARNING:\n%%.%ds", cur_tlv.node_state->length); + printf(warn, cur_tlv.node_state->data); + sleep(3); if (DEBUG_LEVEL > 0) { if (cur_tlv.node_state->data == NULL) {