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:
David Bauer 2025-05-10 11:00:57 +02:00
parent af69ad3898
commit 710c7d9be3

View file

@ -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: