mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-05 01:46:11 +02: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
@ -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…
x
Reference in New Issue
Block a user