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 | 973c5ed45dbdf8fd90e300826507b5e6814916af (patch) | |
tree | a4b9bd61604edb1580b68ed563ae5297efc50ac7 /drivers/i2c | |
parent | 6188a3768131334ceaaf38c7c2d9d3616d562901 (diff) | |
download | op-kernel-dev-973c5ed45dbdf8fd90e300826507b5e6814916af.zip op-kernel-dev-973c5ed45dbdf8fd90e300826507b5e6814916af.tar.gz |
i2c: imx: don't use strcpy but strlcpy
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index dfb84b7..cdcf313 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -510,7 +510,7 @@ static int __init i2c_imx_probe(struct platform_device *pdev) } /* Setup i2c_imx driver structure */ - strcpy(i2c_imx->adapter.name, pdev->name); + strlcpy(i2c_imx->adapter.name, pdev->name, sizeof(i2c_imx->adapter.name)); i2c_imx->adapter.owner = THIS_MODULE; i2c_imx->adapter.algo = &i2c_imx_algo; i2c_imx->adapter.dev.parent = &pdev->dev; |