summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/tv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/tv.c b/libmpdemux/tv.c
index 3939ab11f5..7433d86337 100644
--- a/libmpdemux/tv.c
+++ b/libmpdemux/tv.c
@@ -331,7 +331,8 @@ static int open_tv(tvi_handle_t *tvh)
if (!sep) continue; // Wrong syntax, but mplayer should not crash
- strcpy(tv_channel_current->name, sep + 1);
+ strlcpy(tv_channel_current->name, sep + 1,
+ sizeof(tv_channel_current->name));
sep[0] = '\0';
strncpy(tv_channel_current->number, tmp, 5);