Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6a7ce82f02e8ce7391e40018749d93762abf6ee0
Commit:     6a7ce82f02e8ce7391e40018749d93762abf6ee0
Parent:     de81d2aaebc8e5e5167cb93f674c57705898e45e
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Tue May 22 19:49:16 2007 +0200
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Tue May 22 19:49:16 2007 +0200

    i2c-tiny-usb: Fix truncated adapter name
    
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
    Cc: Till Harbaum <[EMAIL PROTECTED]>
---
 drivers/i2c/busses/i2c-tiny-usb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-tiny-usb.c 
b/drivers/i2c/busses/i2c-tiny-usb.c
index 9079990..cb9abe7 100644
--- a/drivers/i2c/busses/i2c-tiny-usb.c
+++ b/drivers/i2c/busses/i2c-tiny-usb.c
@@ -208,7 +208,7 @@ static int i2c_tiny_usb_probe(struct usb_interface 
*interface,
        dev->adapter.class = I2C_CLASS_HWMON;
        dev->adapter.algo = &usb_algorithm;
        dev->adapter.algo_data = dev;
-       snprintf(dev->adapter.name, I2C_NAME_SIZE,
+       snprintf(dev->adapter.name, sizeof(dev->adapter.name),
                 "i2c-tiny-usb at bus %03d device %03d",
                 dev->usb_dev->bus->busnum, dev->usb_dev->devnum);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to