From 3bb471eed4e1967866a0297ea43a9e2643ff5477 Mon Sep 17 00:00:00 2001 From: db1sb <31588113+db1sb@users.noreply.github.com> Date: Sun, 3 Sep 2017 13:23:09 +0200 Subject: [PATCH] Update AX25.cpp Also this call-storage must be terminated --- LibAPRS/AX25.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LibAPRS/AX25.cpp b/LibAPRS/AX25.cpp index 078b931..afe2b2d 100644 --- a/LibAPRS/AX25.cpp +++ b/LibAPRS/AX25.cpp @@ -36,6 +36,8 @@ static void ax25_decode(AX25Ctx *ctx) { for (msg.rpt_count = 0; !(*buf++ & 0x01) && (msg.rpt_count < countof(msg.rpt_list)); msg.rpt_count++) { DECODE_CALL(buf, msg.rpt_list[msg.rpt_count].call); + //db1sb: terminate rpt_list.call-entries + msg.rpt_list[msg.rpt_count].call[6] = 0; msg.rpt_list[msg.rpt_count].ssid = (*buf >> 1) & 0x0F; AX25_SET_REPEATED(&msg, msg.rpt_count, (*buf & 0x80)); }