config: use local strdupa() routine for cross-platform compat.
Spotted by decke
This commit is contained in:
parent
a9215da88a
commit
eee6409733
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ config_migrate_v5 ( void )
|
|||
if (!(e = htsmsg_get_map(e, "config"))) continue;
|
||||
if (!(str = htsmsg_get_str(e, "class"))) continue;
|
||||
if (!strncmp(str, "linux", 5)) {
|
||||
str = strdupa(str+5);
|
||||
str = tvh_strdupa(str+5);
|
||||
htsmsg_delete_field(e, "class");
|
||||
htsmsg_add_str(e, "class", str);
|
||||
hts_settings_save(e, "input/dvb/networks/%s/config", f->hmf_name);
|
||||
|
|
Loading…
Add table
Reference in a new issue