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

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


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

Linux DVB: fix memset() size

Pointed-out-by: Rémi Duraffort <ivoire at videolan.org>

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

 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 ef87f39..fbc771b 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -621,7 +621,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