summaryrefslogtreecommitdiff
path: root/Moncode.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-03-08 02:27:19 +0000
committerDave Hibberd <hibby@debian.org>2026-03-08 02:27:19 +0000
commit90bbe9abf9996c82667d3e4f58b4e3db77129e48 (patch)
treea3c1d7b3c884e3f3182db11968e94a8eb538e3f9 /Moncode.c
parent4f0df4999cd0f9e425a93dc08080b4084634c450 (diff)
parent7aa6cec9300c8a3e9ef98b19791ad324d487512e (diff)
Update upstream source from tag 'upstream/6.0.25.33+repack'
Update to upstream version '6.0.25.33+repack' with Debian dir 8c0c36c05c355f6cb21140b2ebd58907087b1423
Diffstat (limited to 'Moncode.c')
-rw-r--r--Moncode.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/Moncode.c b/Moncode.c
index 6cbf95a..7e50701 100644
--- a/Moncode.c
+++ b/Moncode.c
@@ -866,6 +866,18 @@ char * DISPLAY_NETROM(MESSAGE * ADJBUFFER, UCHAR * Output, int MsgLen)
return Output;
}
+
+ if (Index == 0x0F) // NCMP
+ {
+ Output += sprintf((char *)Output, " NCMP %x %x Type %x Code %x", Index, ID, TXNO, RXNO);
+
+ MsgLen = MsgLen - (19 + sizeof(void *));
+
+ if (MsgLen < 0 || MsgLen > 257)
+ return Output;// Duff
+
+ return Output;
+ }
}
Output += sprintf((char *)Output, " <???\?>");
@@ -1021,6 +1033,7 @@ void WritePacketLogThread(void * param)
MESSAGE * MSG;
MESSAGE * Q;
char buffer[2048];
+ char * ptr;
while(1)
{
@@ -1074,7 +1087,14 @@ void WritePacketLogThread(void * param)
MsgLen = IntDecodeFrame(MSG, buffer, MSG->Timestamp, 0xffffffffffffffff, FALSE, FALSE);
IntSetTraceOptionsEx(MMASK, SaveMTX, SaveMCOM, SaveMUI);
- buffer[MsgLen++] = 0x0a; // Add lf
+ // lines are CR terminated. Replace with LF
+
+ ptr = buffer;
+
+ while (ptr = strchr(ptr, 0x0d))
+ *ptr = 0x0a;
+
+// buffer[MsgLen++] = 0x0a; // Add lf
fwrite(buffer , 1, MsgLen, Handle);