Skip to content

Commit

Permalink
V4L/DVB (7317): pvrusb2: Increase buffer size for printing video stan…
Browse files Browse the repository at this point in the history
…dard strings

Buffer size for printing pvrusb2 video standard strings was too small
before.  This is cosmetic; the printing logic is not able to overrun a
too-short buffer.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent ef7c370 commit a00199f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/pvrusb2/pvrusb2-std.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ struct v4l2_standard *pvr2_std_create_enum(unsigned int *countptr,
struct v4l2_standard *stddefs;

if (pvrusb2_debug & PVR2_TRACE_STD) {
char buf[80];
char buf[100];
bcnt = pvr2_std_id_to_str(buf,sizeof(buf),id);
pvr2_trace(
PVR2_TRACE_STD,"Mapping standards mask=0x%x (%.*s)",
Expand Down Expand Up @@ -356,7 +356,7 @@ struct v4l2_standard *pvr2_std_create_enum(unsigned int *countptr,
fmsk &= ~CSTD_ATSC;

if (fmsk) {
char buf[80];
char buf[100];
bcnt = pvr2_std_id_to_str(buf,sizeof(buf),fmsk);
pvr2_trace(
PVR2_TRACE_ERROR_LEGS,
Expand Down

0 comments on commit a00199f

Please sign in to comment.