diff options
| author | David Bauer | 2025-05-10 09:00:57 +0000 |
|---|---|---|
| committer | David Bauer | 2025-11-12 18:37:35 +0000 |
| commit | 710c7d9be39c2b53ebbdea0e810b3f48832af414 (patch) | |
| tree | 48fdb0a69da87e68fd403fce62c3bcac37ab08e5 | |
| parent | af69ad389895802dca2e7bda536f5ef04cfd37d7 (diff) | |
| download | openwrt-710c7d9be39c2b53ebbdea0e810b3f48832af414.tar.gz | |
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>
| -rw-r--r-- | target/linux/mpc85xx/patches-6.12/102-powerpc-add-cmdline-override.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/mpc85xx/patches-6.12/102-powerpc-add-cmdline-override.patch b/target/linux/mpc85xx/patches-6.12/102-powerpc-add-cmdline-override.patch index 5014bf933e..e7fb4bcd1b 100644 --- a/target/linux/mpc85xx/patches-6.12/102-powerpc-add-cmdline-override.patch +++ b/target/linux/mpc85xx/patches-6.12/102-powerpc-add-cmdline-override.patch @@ -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: |