projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e014e9
)
i2c: strncpy does not null terminate string
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 17 Jul 2009 13:24:00 +0000
(15:24 +0200)
committer
Ben Dooks
<ben-linux@fluff.org>
Wed, 29 Jul 2009 23:55:50 +0000
(
00:55
+0100)
strlcpy() will always null terminate the string.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-omap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-omap.c
b/drivers/i2c/busses/i2c-omap.c
index fdd83277c8a81ac22441ce7ddea5188b0247e34f..f2b82ee39adf0c11ca4bce231539c841a47e32c3 100644
(file)
--- a/
drivers/i2c/busses/i2c-omap.c
+++ b/
drivers/i2c/busses/i2c-omap.c
@@
-879,7
+879,7
@@
omap_i2c_probe(struct platform_device *pdev)
i2c_set_adapdata(adap, dev);
adap->owner = THIS_MODULE;
adap->class = I2C_CLASS_HWMON;
- str
n
cpy(adap->name, "OMAP I2C adapter", sizeof(adap->name));
+ str
l
cpy(adap->name, "OMAP I2C adapter", sizeof(adap->name));
adap->algo = &omap_i2c_algo;
adap->dev.parent = &pdev->dev;