From d37a18baa863d588128b12ab78f0fecb428612a6 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 22 Mar 2025 21:27:41 +0100 Subject: [PATCH] fix --- src/ascii_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ascii_cmd.c b/src/ascii_cmd.c index fec573b..fb3c0e7 100644 --- a/src/ascii_cmd.c +++ b/src/ascii_cmd.c @@ -222,7 +222,7 @@ static void handle_af(char *arg, RDSModulator* mod, char* output) { } static void handle_g(char *arg, RDSModulator* mod, char* output) { - uint16_t blocks[3]; + uint16_t blocks[4]; int count = sscanf((char *)arg, "%4hx%4hx%4hx%4hx", &blocks[0], &blocks[1], &blocks[2], &blocks[3]); if (count == 3) { mod->enc->state[mod->enc->program].custom_group[0] = 1;