Skip to content

Commit

Permalink
V4L/DVB (5983): Arv.c: fix memset in ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mariusz Kozlowski authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 473c653 commit 8509a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/arv.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,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;
Expand Down

0 comments on commit 8509a29

Please sign in to comment.