From 0ac56f0be8c69f0cf460e7e96c711d9b82a6eaeb Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Sat, 4 May 2013 15:10:04 +0200 Subject: [PATCH] Use internal tvh_strdupa() because strdupa() is GNU only. --- src/webui/webui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui/webui.c b/src/webui/webui.c index 6cfd6993..eb0ff965 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -647,7 +647,7 @@ http_stream_service(http_connection_t *hc, service_t *service) hc->hc_username, http_arg_get(&hc->hc_args, "User-Agent")); if(s) { - name = strdupa(service->s_ch ? + name = tvh_strdupa(service->s_ch ? service->s_ch->ch_name : service->s_nicename); pthread_mutex_unlock(&global_lock); http_stream_run(hc, &sq, name, mc); @@ -685,7 +685,7 @@ http_stream_tdmi(http_connection_t *hc, th_dvb_mux_instance_t *tdmi) addrbuf, hc->hc_username, http_arg_get(&hc->hc_args, "User-Agent")); - name = strdupa(tdmi->tdmi_identifier); + name = tvh_strdupa(tdmi->tdmi_identifier); pthread_mutex_unlock(&global_lock); http_stream_run(hc, &sq, name, MC_RAW); pthread_mutex_lock(&global_lock); @@ -761,7 +761,7 @@ http_stream_channel(http_connection_t *hc, channel_t *ch) http_arg_get(&hc->hc_args, "User-Agent")); if(s) { - name = strdupa(ch->ch_name); + name = tvh_strdupa(ch->ch_name); pthread_mutex_unlock(&global_lock); http_stream_run(hc, &sq, name, mc); pthread_mutex_lock(&global_lock);