]> Git Repo - linux.git/commitdiff
i2c-tiny-usb: Fix truncated adapter name
authorJean Delvare <[email protected]>
Tue, 22 May 2007 17:49:16 +0000 (19:49 +0200)
committerJean Delvare <[email protected]>
Tue, 22 May 2007 17:49:16 +0000 (19:49 +0200)
Signed-off-by: Jean Delvare <[email protected]>
Cc: Till Harbaum <[email protected]>
drivers/i2c/busses/i2c-tiny-usb.c

index 907999049d500a770064a6077ce93ca97c72561e..cb9abe7565a7106cf3155322a2a3061522a12b0a 100644 (file)
@@ -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);
 
This page took 0.05268 seconds and 4 git commands to generate.