[vlc-commits] access: dtv: Fix variable names in isdbt_setup()

Akinobu Mita git at videolan.org
Mon May 28 10:51:38 CEST 2018


vlc/vlc-3.0 | branch: master | Akinobu Mita <akinobu.mita at gmail.com> | Sun May 27 02:51:25 2018 +0900| [1d2d23e3afb1fee39db97b60b6202fb31e1973fb] | committer: Rémi Denis-Courmont

access: dtv: Fix variable names in isdbt_setup()

The isdbt_setup() attempts to query various variables starting with
"dvb-a-", "dvb-b-", and "dvb-c-", but the 6th character in the variable
names (it should be '-') isn't properly initialized.

Signed-off-by: Akinobu Mita <akinobu.mita at gmail.com>
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit eecd7d0daa3e5409eeafb13f13c6d63f778e229f)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1d2d23e3afb1fee39db97b60b6202fb31e1973fb
---

 modules/access/dtv/access.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index a5fc83d872..9ab0504268 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -868,7 +868,7 @@ static int isdbt_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
     for (unsigned i = 0; i < 3; i++)
     {
         char varname[sizeof ("dvb-X-interleaving")];
-        memcpy (varname, "dvb-X-", 4);
+        memcpy (varname, "dvb-X-", 6);
         varname[4] = 'a' + i;
 
         strcpy (varname + 6, "modulation");



More information about the vlc-commits mailing list