[vlc-commits] Linux DVB: fix memset() size
Rémi Denis-Courmont
git at videolan.org
Mon Mar 26 16:46:10 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 26 17:45:35 2012 +0300| [684786a829afbf8848369d0e95115b86c8f6df4d] | committer: Rémi Denis-Courmont
Linux DVB: fix memset() size
Pointde-out-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=684786a829afbf8848369d0e95115b86c8f6df4d
---
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