From 8bc0a437def57512b95671888320f4ed629c3bb9 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 15 Mar 2025 09:11:06 +0100 Subject: [PATCH] fix save feature --- src/ascii_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ascii_cmd.c b/src/ascii_cmd.c index 03afb2e..710611f 100644 --- a/src/ascii_cmd.c +++ b/src/ascii_cmd.c @@ -461,12 +461,12 @@ void process_ascii_cmd(RDSModulator* enc, unsigned char *str) { } if (to_save) { - if (strncmp((const char*)&str[1], "ALL", 3) == 0) { + if (strncmp((const char*)&str, "ALL", 3) == 0) { saveToFile(enc->enc, "ALL"); return; } else { char option[32] = {0}; - strncpy(option, (const char*)&str[1], sizeof(option) - 1); + strncpy(option, (const char*)&str, sizeof(option) - 1); saveToFile(enc->enc, option); return; }