From 34f3555e14659b31343f50d2d2a18c55470ddaba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 23 Jun 2010 08:22:57 +0000 Subject: [PATCH] Don't need libavutil/avstring.h --- src/iptv_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iptv_input.c b/src/iptv_input.c index f9c27773..60f22802 100644 --- a/src/iptv_input.c +++ b/src/iptv_input.c @@ -33,7 +33,7 @@ #include #include -#include +//#include #include "tvhead.h" #include "htsmsg.h" @@ -211,7 +211,7 @@ iptv_transport_start(th_transport_t *t, unsigned int weight, int force_start) /* First, resolve interface name */ memset(&ifr, 0, sizeof(ifr)); - av_strlcpy(ifr.ifr_name, t->tht_iptv_iface, IFNAMSIZ); + snprintf(ifr.ifr_name, IFNAMSIZ, "%s", t->tht_iptv_iface); ifr.ifr_name[IFNAMSIZ - 1] = 0; if(ioctl(fd, SIOCGIFINDEX, &ifr)) { tvhlog(LOG_ERR, "IPTV", "\"%s\" cannot find interface %s",