aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <wolfram@the-dreams.de>2012-04-19 17:31:01 +0200
committerWolfram Sang <w.sang@pengutronix.de>2012-05-12 14:28:14 +0200
commit6188a3768131334ceaaf38c7c2d9d3616d562901 (patch)
tree258494a08814e9cd5ccddc288a31c3c09d1210f3
parent4a5fe5cb5a3224d03618272f9ba92c626dc44cda (diff)
downloadlinux-linaro-stable-6188a3768131334ceaaf38c7c2d9d3616d562901.tar.gz
i2c: eg20t: don't use strcpy but strlcpy
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de> Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
-rw-r--r--drivers/i2c/busses/i2c-eg20t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c
index 5441e6929f12..2f74ae872e1e 100644
--- 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;
- strcpy(pch_adap->name, KBUILD_MODNAME);
+ strlcpy(pch_adap->name, KBUILD_MODNAME, sizeof(pch_adap->name));
pch_adap->algo = &pch_algorithm;
pch_adap->algo_data = &adap_info->pch_data[i];