V4L/DVB (7924): ivtv/cx18: snprintf fixes
authorJean Delvare <khali@linux-fr.org>
Tue, 13 May 2008 21:27:15 +0000 (18:27 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:06:37 +0000 (07:06 -0300)
commitb4ac3c8d8de387366be11c7320693e0b14429a49
treebe2f252221e8d618197b154ac917a84baeaa5150
parent54b6550e430aa8739dceb5ba0fe4325c0208d3a7
V4L/DVB (7924): ivtv/cx18: snprintf fixes

snprinf() takes the trailing \0 into account in its length calculations,
so there is no need to subtract 1 to the buffer size.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx18/cx18-driver.c
drivers/media/video/ivtv/ivtv-driver.c