diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-06 18:05:45 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-06 18:05:45 -0300 |
commit | 7c165b05620d90e63714f08a523edc5533644838 (patch) | |
tree | dfebc03fd2b836820cee77e4e66f9a1fa80b561d /linux/drivers/media/video/arv.c | |
parent | 95c10b6b712386c35e98954d9c87a647dc5bd7f2 (diff) | |
download | mediapointer-dvb-s2-7c165b05620d90e63714f08a523edc5533644838.tar.gz mediapointer-dvb-s2-7c165b05620d90e63714f08a523edc5533644838.tar.bz2 |
Arv.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/arv.c')
-rw-r--r-- | linux/drivers/media/video/arv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/arv.c b/linux/drivers/media/video/arv.c index 5d105f126..e5260f659 100644 --- a/linux/drivers/media/video/arv.c +++ b/linux/drivers/media/video/arv.c @@ -442,7 +442,7 @@ static int ar_do_ioctl(struct inode *inode, struct file *file, { struct video_window *w = arg; DEBUG(1, "VIDIOCGWIN:\n"); - memset(w, 0, sizeof(w)); + memset(w, 0, sizeof(*w)); w->width = ar->width; w->height = ar->height; return 0; |