From 201084d9f102084c69a2e69068098e16a683df19 Mon Sep 17 00:00:00 2001 From: n07070 Date: Wed, 29 Apr 2020 22:45:58 +0200 Subject: [PATCH] Trying to fix --- src/node.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {