mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
mpc85xx: use strscpy instead of strlcpy
Usage of strlcpy results in a compilation error. strscpy is preferred anyways and equivalent for our case. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
parent
af69ad3898
commit
710c7d9be3
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
+#ifdef CONFIG_CMDLINE_OVERRIDE
|
||||
+ p = of_get_flat_dt_prop(node, "bootargs-override", &l);
|
||||
+ if (p != NULL && l > 0)
|
||||
+ strlcpy(cmdline, p, min((int)l, COMMAND_LINE_SIZE));
|
||||
+ strscpy(cmdline, p, COMMAND_LINE_SIZE);
|
||||
+#endif
|
||||
+
|
||||
handle_cmdline:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue