From eee6409733b82fb4dedf91090e15a57b1d124c3d Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 14 Apr 2014 16:56:41 +0100 Subject: [PATCH] config: use local strdupa() routine for cross-platform compat. Spotted by decke --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index c73866bf..87dd43f6 100644 --- a/src/config.c +++ b/src/config.c @@ -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);