mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
xg3: fix buffer overflow
The issue was found by dcb314.
This commit is contained in:
parent
234122bb50
commit
f778fe1677
@ -362,7 +362,7 @@ int xg3_set_freq(RIG * rig, vfo_t vfo, freq_t freq)
|
||||
if (!rig)
|
||||
return -RIG_EINVAL;
|
||||
|
||||
char cmdbuf[16];
|
||||
char cmdbuf[20];
|
||||
|
||||
tvfo = (vfo == RIG_VFO_CURR ||
|
||||
vfo == RIG_VFO_VFO) ? rig->state.current_vfo : vfo;
|
||||
|
Loading…
Reference in New Issue
Block a user