summaryrefslogtreecommitdiff
path: root/ChatUtils.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-10 22:07:21 +0100
committerDave Hibberd <d@vehibberd.com>2023-10-10 22:07:21 +0100
commit3e029049d76fdc2fc6b5f29ba5c97787067a50da (patch)
tree69c963a5c2414f91d233108a9aa5ce6cc2453a52 /ChatUtils.c
parentb6a50b9b6c417bc84f44a7426423299495cd475d (diff)
parent7b2a99c53b210949fb2e993e65b6be66a9cbf7a1 (diff)
Update upstream source from tag 'upstream/6.0.24.15'
Update to upstream version '6.0.24.15' with Debian dir 55d9f12f070c2d4941ac2cd52b761500aa2e5570
Diffstat (limited to 'ChatUtils.c')
-rw-r--r--ChatUtils.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ChatUtils.c b/ChatUtils.c
index ce7cc07..dfcf6dd 100644
--- a/ChatUtils.c
+++ b/ChatUtils.c
@@ -16,6 +16,7 @@ extern int NumberofChatStreams;
extern char ChatConfigName[MAX_PATH];
extern char Session[20];
+extern int chatPaclen;
extern struct SEM ChatSemaphore;
extern struct SEM AllocSemaphore;
@@ -67,7 +68,7 @@ int Connected(int Stream)
if (conn->rtcflags == p_linkini)
{
- conn->paclen = 236;
+ conn->paclen = chatPaclen;
// Run first line of connect script
@@ -86,8 +87,10 @@ int Connected(int Stream)
conn->Secure_Session = GetConnectionInfo(Stream, callsign,
&port, &conn->SessType, &paclen, &maxframe, &l4window);
- conn->paclen = paclen;
+ if (paclen > chatPaclen || paclen == 0)
+ paclen = chatPaclen;
+ conn->paclen = paclen;
strlop(callsign, ' '); // Remove trailing spaces
memcpy(conn->Callsign, callsign, 10);