[vlc-commits] Linux DVB: fix memset() size

Rémi Denis-Courmont git at videolan.org
Mon Mar 26 16:46:59 CEST 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 26 17:45:35 2012 +0300| [ba511907e90be341b5b297ba83061e39035bbe5d] | committer: Rémi Denis-Courmont

Linux DVB: fix memset() size

Pointed-out-by: Rémi Duraffort <ivoire at videolan.org>
(cherry picked from commit a52bbd192f4c1f2b1e6e1fdeb8c42a0a3a95b6d9)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=ba511907e90be341b5b297ba83061e39035bbe5d
---

 modules/access/dtv/linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 4b5bfa0..3208139 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -539,7 +539,7 @@ static int dvb_vset_props (dvb_device_t *d, size_t n, va_list ap)
     struct dtv_property buf[n], *prop = buf;
     struct dtv_properties props = { .num = n, .props = buf };
 
-    memset (prop, 0, sizeof (prop));
+    memset (buf, 0, sizeof (buf));
 
     while (n > 0)
     {



More information about the vlc-commits mailing list