Fix segfault in kenwood_set_vfo

https://github.com/Hamlib/Hamlib/issues/794
pull/799/head
Mike Black W9MDB 2021-09-10 05:36:42 -05:00
rodzic 037db1379b
commit e881993433
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -25,3 +25,7 @@ Here is the list of the brave fellows:
* Chuck Ritola
fclose of fsockin or fsockout when null
https://github.com/Hamlib/Hamlib/issues/757
* John Nelson G4KLA 09/2021
kenwood_set_vfo
https://github.com/Hamlib/Hamlib/issues/794

Wyświetl plik

@ -1053,7 +1053,7 @@ int kenwood_get_if(RIG *rig)
*/
int kenwood_set_vfo(RIG *rig, vfo_t vfo)
{
char cmdbuf[6];
char cmdbuf[12];
int retval;
char vfo_function;
struct kenwood_priv_data *priv = rig->state.priv;
@ -1231,7 +1231,7 @@ int kenwood_get_vfo_main_sub(RIG *rig, vfo_t *vfo)
int kenwood_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)
{
struct kenwood_priv_data *priv = rig->state.priv;
char cmdbuf[6];
char cmdbuf[12];
int retval;
unsigned char vfo_function;