Fix rigctl w command with semicolon ending

https://github.com/Hamlib/Hamlib/issues/239
pull/252/head
mdblack98 2020-05-06 17:45:02 -05:00
rodzic 9f80d8f21d
commit 067f95dda8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -4288,7 +4288,7 @@ declare_proto_rig(send_cmd)
int i;
rig_debug(RIG_DEBUG_TRACE, "%s: send_cmd_term==-1, arg1=%s\n", __func__, arg1);
if (strstr(arg1, "\\0x") == NULL)
if (arg1[strlen(arg1)-1] != ';' && strstr(arg1, "\\0x") == NULL)
{
rig_debug(RIG_DEBUG_ERR, "%s: expecting binary hex string here\n", __func__);
return -RIG_EINVAL;