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);