kopia lustrzana https://github.com/Hamlib/Hamlib
Fix "val_len" paramenter for rot_get_conf2() and amp_get_conf2()
Thanks to @GeoBaltz.pull/1841/head
rodzic
19dce9dc32
commit
e2feb1d1d0
|
@ -124,7 +124,7 @@ typedef struct Amp {
|
||||||
|
|
||||||
const char *get_conf(hamlib_token_t tok) {
|
const char *get_conf(hamlib_token_t tok) {
|
||||||
static char s[128] = "";
|
static char s[128] = "";
|
||||||
self->error_status = amp_get_conf2(self->amp, tok, s, sizeof *s);
|
self->error_status = amp_get_conf2(self->amp, tok, s, sizeof s);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ typedef struct Amp {
|
||||||
if (tok == RIG_CONF_END)
|
if (tok == RIG_CONF_END)
|
||||||
self->error_status = -RIG_EINVAL;
|
self->error_status = -RIG_EINVAL;
|
||||||
else
|
else
|
||||||
self->error_status = amp_get_conf2(self->amp, tok, s, sizeof *s);
|
self->error_status = amp_get_conf2(self->amp, tok, s, sizeof s);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ typedef struct Rot {
|
||||||
|
|
||||||
const char *get_conf(hamlib_token_t tok) {
|
const char *get_conf(hamlib_token_t tok) {
|
||||||
static char s[128] = "";
|
static char s[128] = "";
|
||||||
self->error_status = rot_get_conf2(self->rot, tok, s, sizeof *s);
|
self->error_status = rot_get_conf2(self->rot, tok, s, sizeof s);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ typedef struct Rot {
|
||||||
if (tok == RIG_CONF_END)
|
if (tok == RIG_CONF_END)
|
||||||
self->error_status = -RIG_EINVAL;
|
self->error_status = -RIG_EINVAL;
|
||||||
else
|
else
|
||||||
self->error_status = rot_get_conf2(self->rot, tok, s, sizeof *s);
|
self->error_status = rot_get_conf2(self->rot, tok, s, sizeof s);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue