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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user