diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-03-04 22:46:52 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-03-04 22:46:52 +0000 |
| commit | b128f2a43a16acef50de045ae6526772c04c395e (patch) | |
| tree | 77971053f1ab7355621a01f0f58c44b6d722c6a3 /AGWAPI.c | |
| parent | c858986248f9ee86835be732f413824c0e42d729 (diff) | |
New upstream version 6.0.24.66+repackupstream/6.0.24.66+repack
Diffstat (limited to 'AGWAPI.c')
| -rw-r--r-- | AGWAPI.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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;
}
}
|
