libv4lconvert.c: fix memset bug discovered by v4l2-compliance.
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 23 Jun 2011 14:13:37 +0000 (16:13 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Thu, 23 Jun 2011 14:13:37 +0000 (16:13 +0200)
commitd777defcb30d567253c7d45462b73596786827e7
tree9ea379ab2c30cf258ee3a3b20c96223a134907d9
parent5a1ee7557ba48c999b3b6dcc49bc370154f60302
libv4lconvert.c: fix memset bug discovered by v4l2-compliance.

The size of the reserved array is 4 * sizeof(u32) = 16. So only the first
element is now zeroed. Use sizeof(reserved) instead.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
lib/libv4lconvert/libv4lconvert.c