summaryrefslogtreecommitdiff
path: root/AGWAPI.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-03-04 22:46:54 +0000
committerDave Hibberd <hibby@debian.org>2025-03-04 22:46:54 +0000
commitf0b507a096d65291aedcc9f98cde1d7b8aabc024 (patch)
tree93b91137e30825ba7fbb690c29d700fba88394ad /AGWAPI.c
parent9d0d20064dd879c2967a86ef0b6751c563d80196 (diff)
parentb128f2a43a16acef50de045ae6526772c04c395e (diff)
Update upstream source from tag 'upstream/6.0.24.66+repack'
Update to upstream version '6.0.24.66+repack' with Debian dir 0a1e01b2c4f9c8b665a31c0f8523e8fa0e88b6be
Diffstat (limited to 'AGWAPI.c')
-rw-r--r--AGWAPI.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/AGWAPI.c b/AGWAPI.c
index bf4c7da..dcf3494 100644
--- a/AGWAPI.c
+++ b/AGWAPI.c
@@ -1142,6 +1142,7 @@ int ProcessAGWCommand(struct AGWSocketConnectionInfo * sockptr)
int con,conport;
int AGWYReply = 0;
int state, change;
+ int n;
// if we have hidden some ports then the port in the AGW packet will be an index into the visible ports,
// not the real port number
@@ -1196,7 +1197,7 @@ int ProcessAGWCommand(struct AGWSocketConnectionInfo * sockptr)
conport=GetPortNumber(VisiblePortToRealPort[key[0]-48]);
- sprintf(ConnectMsg,"C %d %s",conport,ToCall);
+ n = sprintf(ConnectMsg,"C %d %s",conport,ToCall);
// if 'v' command add digis
@@ -1211,7 +1212,7 @@ int ProcessAGWCommand(struct AGWSocketConnectionInfo * sockptr)
while(nDigis--)
{
- sprintf(ConnectMsg, "%s, %s", ConnectMsg, Digis);
+ n += sprintf(&ConnectMsg[n], " %s", Digis);
Digis += 10;
}
}