Skip to content

Commit

Permalink
Remove extra nul byte at end of txpk_ack packets.
Browse files Browse the repository at this point in the history
  • Loading branch information
ke6jjj committed Oct 18, 2022
1 parent 45a783b commit 369bb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packet_forwarder/src/lora_pkt_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 369bb7a

Please sign in to comment.