Fix static array reference in netrigctl.c

https://github.com/Hamlib/Hamlib/issues/932
pull/936/head
Mike Black W9MDB 2022-01-17 16:59:31 -06:00
rodzic 194eb75268
commit 30a06c4fc6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1906,11 +1906,11 @@ static int netrigctl_set_level(RIG *rig, vfo_t vfo, setting_t level,
if (RIG_LEVEL_IS_FLOAT(level))
{
SNPRINTF(lstr, sizeof(cmd), "%f", val.f);
SNPRINTF(lstr, sizeof(lstr), "%f", val.f);
}
else
{
SNPRINTF(lstr, sizeof(cmd), "%d", val.i);
SNPRINTF(lstr, sizeof(lstr), "%d", val.i);
}
ret = netrigctl_vfostr(rig, vfostr, sizeof(vfostr), vfo);