]> git.ipfire.org Git - thirdparty/openwrt.git/commit
kernel: fix wrong strlcat call 23892/head
authorRosen Penev <rosenp@gmail.com>
Sun, 21 Jun 2026 05:02:34 +0000 (22:02 -0700)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 22 Jun 2026 09:06:48 +0000 (11:06 +0200)
commitec26a78f1ea87682b59322f4703761a12aa12471
tree35168d047a001e0c821f58a85e76de0d3a3bf163
parenta8282f563dbfde98acc40b41aa210ab15841b2e8
kernel: fix wrong strlcat call

strlcat takes the total buffer size, not the remaining space.
Passing strlen(cmdline) + l caused it to truncate by one byte
when the appended string fit within the buffer.

This is also more consistent with the rest of the file.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23892
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/generic/hack-6.12/920-device_tree_cmdline.patch
target/linux/generic/hack-6.18/920-device_tree_cmdline.patch
target/linux/ipq806x/patches-6.12/900-arm-add-cmdline-override.patch
target/linux/mediatek/patches-6.18/901-arm-add-cmdline-override.patch
target/linux/mpc85xx/patches-6.12/102-powerpc-add-cmdline-override.patch
target/linux/mpc85xx/patches-6.18/102-powerpc-add-cmdline-override.patch
target/linux/qualcommax/patches-6.12/0911-arm64-cmdline-replacement.patch