projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6188a37
)
i2c: imx: don't use strcpy but strlcpy
author
Wolfram Sang
<wolfram@the-dreams.de>
Thu, 19 Apr 2012 15:31:01 +0000
(17:31 +0200)
committer
Wolfram Sang
<w.sang@pengutronix.de>
Sat, 12 May 2012 12:28:14 +0000
(14:28 +0200)
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
drivers/i2c/busses/i2c-imx.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-imx.c
b/drivers/i2c/busses/i2c-imx.c
index
dfb84b7
..
cdcf313
100644
(file)
--- 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 */
- str
cpy(i2c_imx->adapter.name, pdev->name
);
+ str
lcpy(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;