The patch number 7924 was added via Hans Verkuil <[EMAIL PROTECTED]> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: [EMAIL PROTECTED] ------ From: Jean Delvare <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]> --- linux/drivers/media/video/cx18/cx18-driver.c | 2 +- linux/drivers/media/video/ivtv/ivtv-driver.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -r 9d04bba82511 -r 22cb1969b88c linux/drivers/media/video/cx18/cx18-driver.c --- a/linux/drivers/media/video/cx18/cx18-driver.c Wed May 14 23:14:04 2008 +0000 +++ b/linux/drivers/media/video/cx18/cx18-driver.c Tue May 13 20:27:15 2008 +0200 @@ -614,7 +614,7 @@ static int __devinit cx18_probe(struct p cx18_cards[cx18_cards_active] = cx; cx->dev = dev; cx->num = cx18_cards_active++; - snprintf(cx->name, sizeof(cx->name) - 1, "cx18-%d", cx->num); + snprintf(cx->name, sizeof(cx->name), "cx18-%d", cx->num); CX18_INFO("Initializing card #%d\n", cx->num); spin_unlock(&cx18_cards_lock); diff -r 9d04bba82511 -r 22cb1969b88c linux/drivers/media/video/ivtv/ivtv-driver.c --- a/linux/drivers/media/video/ivtv/ivtv-driver.c Wed May 14 23:14:04 2008 +0000 +++ b/linux/drivers/media/video/ivtv/ivtv-driver.c Tue May 13 20:27:15 2008 +0200 @@ -1023,7 +1023,7 @@ static int __devinit ivtv_probe(struct p ivtv_cards[ivtv_cards_active] = itv; itv->dev = dev; itv->num = ivtv_cards_active++; - snprintf(itv->name, sizeof(itv->name) - 1, "ivtv%d", itv->num); + snprintf(itv->name, sizeof(itv->name), "ivtv%d", itv->num); IVTV_INFO("Initializing card #%d\n", itv->num); spin_unlock(&ivtv_cards_lock); --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/22cb1969b88ce8d0425d9e0e84fffe189d0b3b03 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits