diff options
author | Wolfram Sang <wolfram@the-dreams.de> | 2012-04-19 17:31:01 +0200 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-05-12 14:28:14 +0200 |
commit | 6188a3768131334ceaaf38c7c2d9d3616d562901 (patch) | |
tree | 258494a08814e9cd5ccddc288a31c3c09d1210f3 /drivers/i2c/busses/i2c-eg20t.c | |
parent | i2c: eg20t: remove unused function (diff) | |
download | linux-6188a3768131334ceaaf38c7c2d9d3616d562901.tar.xz linux-6188a3768131334ceaaf38c7c2d9d3616d562901.zip |
i2c: eg20t: don't use strcpy but strlcpy
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Diffstat (limited to 'drivers/i2c/busses/i2c-eg20t.c')
-rw-r--r-- | drivers/i2c/busses/i2c-eg20t.c | 2 |
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]; |