From e2feb1d1d07c1e66b75c1e3d4d0414d790fce7e7 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Mon, 11 Aug 2025 23:40:01 +0200 Subject: [PATCH] Fix "val_len" paramenter for rot_get_conf2() and amp_get_conf2() Thanks to @GeoBaltz. --- bindings/amplifier.swg | 4 ++-- bindings/rotator.swg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/amplifier.swg b/bindings/amplifier.swg index 00ab8d533..136e9d5c1 100644 --- a/bindings/amplifier.swg +++ b/bindings/amplifier.swg @@ -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; } diff --git a/bindings/rotator.swg b/bindings/rotator.swg index 0cfa13cbe..8691e4730 100644 --- a/bindings/rotator.swg +++ b/bindings/rotator.swg @@ -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; }