This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] em28xx: pass correct buffer size to snprintf
Author:  Chris Rankin <[email protected]>
Date:    Sat Aug 20 08:08:34 2011 -0300

snprintf()'s size parameter includes space for the terminating '\0' character.

Signed-off-by: Chris Rankin <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/em28xx/em28xx-cards.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=f38f33395232db1a03d21b992af1714cbffbdec4

diff --git a/drivers/media/video/em28xx/em28xx-cards.c 
b/drivers/media/video/em28xx/em28xx-cards.c
index 3e3959f..d947026 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -3154,7 +3154,7 @@ static int em28xx_usb_probe(struct usb_interface 
*interface,
                goto err;
        }
 
-       snprintf(dev->name, 29, "em28xx #%d", nr);
+       snprintf(dev->name, sizeof(dev->name), "em28xx #%d", nr);
        dev->devno = nr;
        dev->model = id->driver_info;
        dev->alt   = -1;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to