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:
4a5fe5c
)
i2c: eg20t: don't use strcpy but strlcpy
author
Wolfram Sang
<wolfram@the-dreams.de>
Thu, 19 Apr 2012 15:31:01 +0000
(17:31 +0200)
committer
Wolfram Sang
<w.sang@pengutronix.de>
Sat, 12 May 2012 12:28:14 +0000
(14:28 +0200)
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
drivers/i2c/busses/i2c-eg20t.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-eg20t.c
b/drivers/i2c/busses/i2c-eg20t.c
index 5441e6929f128796733e0b033eefb1879367df15..2f74ae872e1e5512239a9e045b19e31e797507b1 100644
(file)
--- a/
drivers/i2c/busses/i2c-eg20t.c
+++ b/
drivers/i2c/busses/i2c-eg20t.c
@@
-813,7
+813,7
@@
static int __devinit pch_i2c_probe(struct pci_dev *pdev,
pch_adap->owner = THIS_MODULE;
pch_adap->class = I2C_CLASS_HWMON;
- str
cpy(pch_adap->name, KBUILD_MODNAME
);
+ str
lcpy(pch_adap->name, KBUILD_MODNAME, sizeof(pch_adap->name)
);
pch_adap->algo = &pch_algorithm;
pch_adap->algo_data = &adap_info->pch_data[i];