summaryrefslogtreecommitdiff
path: root/APRSCode.c
diff options
context:
space:
mode:
Diffstat (limited to 'APRSCode.c')
-rw-r--r--APRSCode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/APRSCode.c b/APRSCode.c
index fea004a..a9af47a 100644
--- a/APRSCode.c
+++ b/APRSCode.c
@@ -1581,9 +1581,9 @@ OK:
// Copy frame to a DIGIMessage Struct
- memcpy(&Msg, monbuff, 21 + (7 * Digis)); // Header, Dest, Source, Addresses and Digis
+ memcpy(&Msg, monbuff, MSGHDDRLEN + 14 + (7 * Digis)); // Header, Dest, Source, Addresses and Digis
- len = Msg.LENGTH - 21 - (7 * Digis); // Payload Length (including CTL and PID
+ len = Msg.LENGTH - (MSGHDDRLEN + 14) - (7 * Digis); // Payload Length (including CTL and PID
memcpy(&Msg.CTL, &AdjBuff->CTL, len);