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

Akinobu Mita git at videolan.org
Mon May 28 10:50:41 CEST 2018


vlc/vlc-3.0 | branch: master | Akinobu Mita <akinobu.mita at gmail.com> | Sun May 27 02:51:25 2018 +0900| [172dc1d7cdf70a67764cdaaaa93eb4beaf24999e] | 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 4th 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 ab0d064c1bfd356bd2b7c617c8b57536e7f15ced)
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=172dc1d7cdf70a67764cdaaaa93eb4beaf24999e
---

 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