summaryrefslogtreecommitdiff
path: root/ARDOP.c
diff options
context:
space:
mode:
Diffstat (limited to 'ARDOP.c')
-rw-r--r--ARDOP.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ARDOP.c b/ARDOP.c
index 8cae151..a46fe3e 100644
--- a/ARDOP.c
+++ b/ARDOP.c
@@ -1494,7 +1494,10 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff)
if (_memicmp(&buff->L2DATA[0], "RADIO ", 6) == 0)
{
- sprintf(&buff->L2DATA[0], "%d %s", TNC->Port, &buff->L2DATA[6]);
+ char cmd[56];
+
+ strcpy(cmd, &buff->L2DATA[6]);
+ sprintf(&buff->L2DATA[0], "%d %s", TNC->Port, cmd);
if (Rig_Command(TNC->PortRecord->ATTACHEDSESSIONS[0]->L4CROSSLINK, &buff->L2DATA[0]))
{
@@ -5955,8 +5958,8 @@ VOID ARAXINIT(struct PORTCONTROL * PORT)
char Msg[80] = "";
memcpy(Msg, PORT->PORTDESCRIPTION, 30);
- sprintf(Msg, "%s\n", Msg);
-
+ strcat(Msg, "\n);
+
WritetoConsoleLocal(Msg);
}