projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8204a3
)
i2c-stu300: make sure adapter-name is terminated
author
Wolfram Sang
<
[email protected]
>
Mon, 31 Jan 2011 14:09:23 +0000
(15:09 +0100)
committer
Ben Dooks
<
[email protected]
>
Tue, 22 Feb 2011 23:53:44 +0000
(23:53 +0000)
Use strlcpy instead of strncpy.
Signed-off-by: Wolfram Sang <
[email protected]
>
Cc: Linus Walleij <
[email protected]
>
Cc: Ben Dooks <
[email protected]
>
Signed-off-by: Ben Dooks <
[email protected]
>
drivers/i2c/busses/i2c-stu300.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-stu300.c
b/drivers/i2c/busses/i2c-stu300.c
index 495be451d326c5b860648e94ccad189c9438c0b2..266135ddf7fa3eeb84cc4e40516688a149cb16d0 100644
(file)
--- a/
drivers/i2c/busses/i2c-stu300.c
+++ b/
drivers/i2c/busses/i2c-stu300.c
@@
-942,7
+942,7
@@
stu300_probe(struct platform_device *pdev)
adap->owner = THIS_MODULE;
/* DDC class but actually often used for more generic I2C */
adap->class = I2C_CLASS_DDC;
- str
n
cpy(adap->name, "ST Microelectronics DDC I2C adapter",
+ str
l
cpy(adap->name, "ST Microelectronics DDC I2C adapter",
sizeof(adap->name));
adap->nr = bus_nr;
adap->algo = &stu300_algo;