diff --git a/rigs/yaesu/ft991.c b/rigs/yaesu/ft991.c index dfe56fe80..d2c36f37d 100644 --- a/rigs/yaesu/ft991.c +++ b/rigs/yaesu/ft991.c @@ -702,7 +702,7 @@ static int ft991_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, } strncat(restore_commands, priv->ret_data, - NEWCAT_DATA_LEN - strlen(restore_commands)); + NEWCAT_DATA_LEN - strlen(restore_commands) - 1); /* Change mode on VFOA */ if (RIG_OK != (err = newcat_set_mode(rig, RIG_VFO_A, tx_mode,