From: Bernhard Froehlich Date: Sat, 4 May 2013 13:10:04 +0000 (+0200) Subject: Use internal tvh_strdupa() because strdupa() is GNU only. X-Git-Tag: v3.9~46^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ac56f0be8c69f0cf460e7e96c711d9b82a6eaeb;p=thirdparty%2Ftvheadend.git Use internal tvh_strdupa() because strdupa() is GNU only. --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 6cfd69934..eb0ff9652 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);