summaryrefslogtreecommitdiff
path: root/RigControl.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 /RigControl.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 'RigControl.c')
-rw-r--r--RigControl.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/RigControl.c b/RigControl.c
index 6bc414f..90349fe 100644
--- a/RigControl.c
+++ b/RigControl.c
@@ -5286,10 +5286,13 @@ BOOL DecodeModePtr(char * Param, double * Dwell, double * Freq, char * Mode,
ptr = strtok_s(NULL, ",", &Context);
+ if (ptr == NULL)
+ if (*MemoryNumber) // If channel, dont need mode
+ return TRUE;
+
if (ptr == NULL || strlen(ptr) > 8)
- return FALSE;
+ return FALSE; // Mode Missing
- // If channel, dont need mode
if (*MemoryNumber == 0)
{
@@ -7393,6 +7396,8 @@ VOID SetupScanInterLockGroups(struct RIGINFO *RIG)
int Interlock = RIG->Interlock;
char PortString[128] = "";
char TxPortString[128] = "";
+ int n = 0;
+ int nn = 0;
// Find TNC ports in this Rig's scan group
@@ -7409,7 +7414,7 @@ VOID SetupScanInterLockGroups(struct RIGINFO *RIG)
{
int p = PortRecord->PORTNUMBER;
RIG->BPQPort |= ((uint64_t)1 << p);
- sprintf(PortString, "%s,%d", PortString, p);
+ n += sprintf(&PortString[n], ",%d", p);
TNC->RIG = RIG;
if (RIG->PTTMode == 0 && TNC->PTTMode)
@@ -7419,7 +7424,7 @@ VOID SetupScanInterLockGroups(struct RIGINFO *RIG)
{
int p = PortRecord->PORTNUMBER;
RIG->BPQPort |= ((uint64_t)1 << p);
- sprintf(TxPortString, "%s,%d", TxPortString, p);
+ nn += sprintf(&TxPortString[nn], ",%d", p);
TNC->TXRIG = RIG;
if (RIG->PTTMode == 0 && TNC->PTTMode)