diff options
author | Wolfram Sang <wolfram@the-dreams.de> | 2012-04-19 11:31:01 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-05-12 08:28:14 -0400 |
commit | 973c5ed45dbdf8fd90e300826507b5e6814916af (patch) | |
tree | a4b9bd61604edb1580b68ed563ae5297efc50ac7 /drivers/i2c | |
parent | 6188a3768131334ceaaf38c7c2d9d3616d562901 (diff) |
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 dfb84b7ee550..cdcf313098be 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) | |||
510 | } | 510 | } |
511 | 511 | ||
512 | /* Setup i2c_imx driver structure */ | 512 | /* Setup i2c_imx driver structure */ |
513 | strcpy(i2c_imx->adapter.name, pdev->name); | 513 | strlcpy(i2c_imx->adapter.name, pdev->name, sizeof(i2c_imx->adapter.name)); |
514 | i2c_imx->adapter.owner = THIS_MODULE; | 514 | i2c_imx->adapter.owner = THIS_MODULE; |
515 | i2c_imx->adapter.algo = &i2c_imx_algo; | 515 | i2c_imx->adapter.algo = &i2c_imx_algo; |
516 | i2c_imx->adapter.dev.parent = &pdev->dev; | 516 | i2c_imx->adapter.dev.parent = &pdev->dev; |