kopia lustrzana https://github.com/Hamlib/Hamlib
Ensure buf is zeroed in kenwood_safe_transaction to avoid return random data
rodzic
2f86dde55a
commit
a55a664401
|
@ -439,6 +439,8 @@ int kenwood_safe_transaction(RIG *rig, const char *cmd, char *buf,
|
||||||
int err;
|
int err;
|
||||||
int retry = 0;
|
int retry = 0;
|
||||||
|
|
||||||
|
memset(buf,buf_size,0);
|
||||||
|
|
||||||
if (expected == 0)
|
if (expected == 0)
|
||||||
buf_size = 0;
|
buf_size = 0;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue