From 3770c441bf80d8d91c1c6106588069e513422c1c Mon Sep 17 00:00:00 2001 From: Mikael Nousiainen Date: Fri, 23 Oct 2020 09:58:40 +0300 Subject: [PATCH] Fix last char index again --- rigs/yaesu/newcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index e6c02ac2f..5e875c288 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -4191,7 +4191,7 @@ int newcat_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) /* chop term */ priv->ret_data[ret_data_len - 1] = '\0'; - last_char_index = ret_data_len - 2; + last_char_index = strlen(retfunc) - 1; rig_debug(RIG_DEBUG_TRACE, "%s: retfunc='%s'\n", __func__, retfunc); switch (func)