0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

fix warning

This commit is contained in:
2025-03-15 09:22:44 +01:00
parent 94b02dbee2
commit acc15985ce

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