From 369bb7a39f7e698858a85a360daa7a8f21c5e177 Mon Sep 17 00:00:00 2001 From: Jeremy Cooper Date: Mon, 17 Oct 2022 18:21:48 -0700 Subject: [PATCH] Remove extra nul byte at end of txpk_ack packets. --- packet_forwarder/src/lora_pkt_fwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packet_forwarder/src/lora_pkt_fwd.c b/packet_forwarder/src/lora_pkt_fwd.c index 867599fd..8bcba2a5 100644 --- a/packet_forwarder/src/lora_pkt_fwd.c +++ b/packet_forwarder/src/lora_pkt_fwd.c @@ -1177,7 +1177,7 @@ static int send_tx_ack(uint8_t token_h, uint8_t token_l, enum jit_error_e error, /* end of JSON structure */ memcpy((void *)(buff_ack + buff_index), (void *)"}}", 3); /* include nul */ - buff_index += 3; + buff_index += 2; /* send datagram to server */ return send(sock_down, (void *)buff_ack, buff_index, 0);