0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00

fix save feature

This commit is contained in:
2025-03-15 09:11:06 +01:00
parent 021cf9537d
commit 8bc0a437de

View File

@@ -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;
}