Use only 1st 2 chars for newcat_set_command_validate check

pull/518/head
Michael Black W9MDB 2021-01-18 17:49:05 -06:00
rodzic cf21f7d65c
commit 2eda4bf1a7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -9654,8 +9654,8 @@ int newcat_set_cmd_validate(RIG *rig)
if (bytes > 0)
{
// if they match we are validated
if (strcmp(priv->cmd_str, priv->ret_data) == 0) { RETURNFUNC(RIG_OK); }
// if the first two chars match we are validated
if (strncmp(priv->cmd_str, priv->ret_data, 2) == 0) { RETURNFUNC(RIG_OK); }
else { rc = -RIG_EPROTO; }
}