diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-06 18:05:27 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-06 18:05:27 -0300 |
commit | 315ead7457e2fa04aaabfb5b1fda36a5a725c461 (patch) | |
tree | 94d41b468aa1d611e1f2f2108d9f073e9ea8c8a6 /linux/drivers/media/video/zoran_driver.c | |
parent | 8e502d79187fdc2f52929f2bdcf9a588e039b669 (diff) | |
download | mediapointer-dvb-s2-315ead7457e2fa04aaabfb5b1fda36a5a725c461.tar.gz mediapointer-dvb-s2-315ead7457e2fa04aaabfb5b1fda36a5a725c461.tar.bz2 |
Zoran_driver.c: fix memset in ioctl
From: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Hello,
Looks like memset() is zeroing wrong nr of bytes.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/zoran_driver.c')
-rw-r--r-- | linux/drivers/media/video/zoran_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/zoran_driver.c b/linux/drivers/media/video/zoran_driver.c index 6e598a3c5..063b21ffd 100644 --- a/linux/drivers/media/video/zoran_driver.c +++ b/linux/drivers/media/video/zoran_driver.c @@ -3263,7 +3263,7 @@ zoran_do_ioctl (struct inode *inode, "%s: VIDIOC_QUERYBUF - index=%d, type=%d\n", ZR_DEVNAME(zr), buf->index, buf->type); - memset(buf, 0, sizeof(buf)); + memset(buf, 0, sizeof(*buf)); buf->type = type; buf->index = index; |