From 18568986f85688a6a2d6ae89c950af94dea6be2f Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 25 May 2024 11:38:16 -0500 Subject: [PATCH] Fix port override --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 9e1e83e2a..2807710b2 100644 --- a/src/conf.c +++ b/src/conf.c @@ -262,7 +262,7 @@ static int frontend_set_conf(RIG *rig, hamlib_token_t token, const char *val) char *val2 = strdup(val); char *p = strchr(val2,':'); // port in here? if (p) { - p = 0; // terminate it + *p = 0; // terminate it rig_debug(RIG_DEBUG_WARN, "%s: overriding port and changing to 4992\n", __func__); } sprintf(rs->rigport_deprecated.pathname, "%s:%s", val2, "4992");