Commit 973c5ed4 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

i2c: imx: don't use strcpy but strlcpy

Signed-off-by: default avatarWolfram Sang <wolfram@the-dreams.de>
parent 6188a376
...@@ -510,7 +510,7 @@ static int __init i2c_imx_probe(struct platform_device *pdev) ...@@ -510,7 +510,7 @@ static int __init i2c_imx_probe(struct platform_device *pdev)
} }
/* Setup i2c_imx driver structure */ /* 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.owner = THIS_MODULE;
i2c_imx->adapter.algo = &i2c_imx_algo; i2c_imx->adapter.algo = &i2c_imx_algo;
i2c_imx->adapter.dev.parent = &pdev->dev; i2c_imx->adapter.dev.parent = &pdev->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment