Fix "val_len" paramenter for rot_get_conf2() and amp_get_conf2()

Thanks to @GeoBaltz.
pull/1841/head
Daniele Forsi IU5HKX 2025-08-11 23:40:01 +02:00
rodzic 19dce9dc32
commit e2feb1d1d0
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -124,7 +124,7 @@ typedef struct Amp {
const char *get_conf(hamlib_token_t tok) {
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;
}
@ -134,7 +134,7 @@ typedef struct Amp {
if (tok == RIG_CONF_END)
self->error_status = -RIG_EINVAL;
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;
}

Wyświetl plik

@ -133,7 +133,7 @@ typedef struct Rot {
const char *get_conf(hamlib_token_t tok) {
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;
}
@ -143,7 +143,7 @@ typedef struct Rot {
if (tok == RIG_CONF_END)
self->error_status = -RIG_EINVAL;
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;
}