From 15729dfafd16fb1fabca24c03f6f0670ee278aea Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Wed, 22 Nov 2023 07:18:55 -0600 Subject: [PATCH 1/2] Fix segfault in conf.c on TOK_PTT_TYPE --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index c6e991c4f..f50792395 100644 --- a/src/conf.c +++ b/src/conf.c @@ -237,7 +237,7 @@ static const struct confparams frontend_serial_cfg_params[] = */ static int frontend_set_conf(RIG *rig, token_t token, const char *val) { - const struct rig_caps *caps; + struct rig_caps *caps; struct rig_state *rs; long val_i; From 5d51e29d4459ff3a9dd87df90adc3ef6cac2de69 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Wed, 22 Nov 2023 07:28:05 -0600 Subject: [PATCH 2/2] Fix conf.c to detect const structure --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index f50792395..ab9f6a1b3 100644 --- a/src/conf.c +++ b/src/conf.c @@ -514,7 +514,7 @@ static int frontend_set_conf(RIG *rig, token_t token, const char *val) if (!strcmp(val, "RIG")) { rs->pttport.type.ptt = RIG_PTT_RIG; - rig->caps->ptt_type = RIG_PTT_RIG; + caps->ptt_type = RIG_PTT_RIG; } else if (!strcmp(val, "RIGMICDATA")) {