summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-driver.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-05-13 20:27:15 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-05-13 20:27:15 +0200
commit611c0c57b9ee26a27b8a4d23a1a6d430ebe83fc7 (patch)
tree6a004609bdb3f4057488052128dc80b3c0d8f8dc /linux/drivers/media/video/ivtv/ivtv-driver.c
parente8af083c78cec1b0711b71093bf7a2837e7113f9 (diff)
downloadmediapointer-dvb-s2-611c0c57b9ee26a27b8a4d23a1a6d430ebe83fc7.tar.gz
mediapointer-dvb-s2-611c0c57b9ee26a27b8a4d23a1a6d430ebe83fc7.tar.bz2
ivtv/cx18: snprintf fixes
From: Jean Delvare <khali@linux-fr.org> 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>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-driver.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-driver.c b/linux/drivers/media/video/ivtv/ivtv-driver.c
index b6f1fc7f4..8c6e90350 100644
--- a/linux/drivers/media/video/ivtv/ivtv-driver.c
+++ b/linux/drivers/media/video/ivtv/ivtv-driver.c
@@ -1023,7 +1023,7 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
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);