fix save feature

This commit is contained in:
2025-03-15 09:11:06 +01:00
parent 021cf9537d
commit 8bc0a437de
+2 -2
View File
@@ -461,12 +461,12 @@ void process_ascii_cmd(RDSModulator* enc, unsigned char *str) {
} }
if (to_save) { if (to_save) {
if (strncmp((const char*)&str[1], "ALL", 3) == 0) { if (strncmp((const char*)&str, "ALL", 3) == 0) {
saveToFile(enc->enc, "ALL"); saveToFile(enc->enc, "ALL");
return; return;
} else { } else {
char option[32] = {0}; 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); saveToFile(enc->enc, option);
return; return;
} }