Mike Black W9MDB 2022-01-11 16:45:11 -06:00
rodzic c503ba6806
commit 71ddc2e60d
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -873,7 +873,7 @@ static int rig2mode(RIG *rig, int md, rmode_t *mode, pbwidth_t *width)
/* /*
* Assumes rig!=NULL, rig->state.priv!=NULL * Assumes rig!=NULL, rig->state.priv!=NULL
*/ */
static int ft757gx_get_conf(RIG *rig, token_t token, char *val) static int ft757gx_get_conf2(RIG *rig, token_t token, char *val, int val_len)
{ {
struct ft757_priv_data *priv; struct ft757_priv_data *priv;
struct rig_state *rs; struct rig_state *rs;
@ -888,7 +888,7 @@ static int ft757gx_get_conf(RIG *rig, token_t token, char *val)
switch (token) switch (token)
{ {
case TOK_FAKEFREQ: case TOK_FAKEFREQ:
SNPRINTF(val, sizeof(val), "%d", priv->fakefreq); SNPRINTF(val, val_len, "%d", priv->fakefreq);
break; break;
default: default:
@ -898,6 +898,12 @@ static int ft757gx_get_conf(RIG *rig, token_t token, char *val)
return RIG_OK; return RIG_OK;
} }
static int ft757gx_get_conf(RIG *rig, token_t token, char *val)
{
return ft757gx_get_conf2(rig, token, val, 128);
}
/* /*
* Assumes rig!=NULL, rig->state.priv!=NULL * Assumes rig!=NULL, rig->state.priv!=NULL
*/ */