diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-13 08:41:12 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 09:27:55 -0200 |
commit | 9518f179128b02c221ffdd692249836bb05a94de (patch) | |
tree | 278cc40c41f2432dae3e997f7be1046d1e58820e /drivers/media/video/v4l2-common.c | |
parent | b4d887cfd735a15d32dbab82334f227a75775b86 (diff) |
V4L/DVB (13685): Correct code taking the size of a pointer
sizeof(print_buf) is just the size of the pointer. Change it to the size
used in the allocation of print_buf earlier in the same function.
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
expression *x;
expression f;
type T;
@@
*f(...,(T)x,...)
// </smpl>
Cc: Janne Grunau <j@jannau.net>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-common.c')
0 files changed, 0 insertions, 0 deletions