Skip to content

Commit

Permalink
i2c: imx: don't use strcpy but strlcpy
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
  • Loading branch information
Wolfram Sang authored and Wolfram Sang committed May 12, 2012
1 parent 6188a37 commit 973c5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 973c5ed

Please sign in to comment.