fix warning

This commit is contained in:
2025-03-15 09:22:44 +01:00
parent 94b02dbee2
commit acc15985ce
+1 -1
View File
@@ -466,7 +466,7 @@ void process_ascii_cmd(RDSModulator* enc, unsigned char *str) {
return;
} else {
char option[32] = {0};
strncpy(option, (const char*)&str, sizeof(option));
snprintf(option, sizeof(option), "%s", (const char*)&str);
saveToFile(enc->enc, option);
return;
}