u-boot/board/amlogic
Matthias Schiffer 615828721a Revert "lib: string: Fix strlcpy return value", fix callers
Both the Linux kernel and libbsd agree that strlcpy() should always
return strlen(src) and not include the NUL termination. The incorrect
U-Boot implementation makes it impossible to check the return value for
truncation, and breaks code written with the usual implementation in
mind (for example, fdtdec_add_reserved_memory() was subtly broken).

I reviewed all callers of strlcpy() and strlcat() and fixed them
according to my understanding of the intended function.

This reverts commit d3358ecc54 and adds
related fixes.

Fixes: d3358ecc54 ("lib: string: Fix strlcpy return value")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
2023-08-08 17:05:43 -04:00
..
ad401 board: amlogic: add support for AD401 board 2023-06-28 10:05:34 +02:00
beelink-s922x doc: boards: amlogic: add documentation for GS-King-X 2023-04-17 11:06:08 +02:00
jethub-j80 ARM: amlogic: add JetHub D1 eth mac generation with manufacturer OUI 2021-10-29 19:16:07 +02:00
jethub-j100 ARM: amlogic: add JetHub D1 eth mac generation with manufacturer OUI 2021-10-29 19:16:07 +02:00
odroid-go-ultra ARM: meson: odroid-go-ultra: setup PMIC regulators are board init 2023-03-14 09:03:16 +01:00
odroid-n2 MAINTAINERS: Update email of Neil Armstrong 2022-08-20 16:17:50 -04:00
p200 doc: boards: amlogic: add documentation for KII Pro 2023-06-28 10:05:34 +02:00
p201 MAINTAINERS: Update email of Neil Armstrong 2022-08-20 16:17:50 -04:00
p212 MAINTAINERS: Update email of Neil Armstrong 2022-08-20 16:17:50 -04:00
q200 doc: boards: amlogic: add documentation for Beelink GT1 Ultimate 2023-04-17 11:06:08 +02:00
s400 MAINTAINERS: Update email of Neil Armstrong 2022-08-20 16:17:50 -04:00
sei510 MAINTAINERS: Update email of Neil Armstrong 2022-08-20 16:17:50 -04:00
sei610 MAINTAINERS: Update email of Neil Armstrong 2022-08-20 16:17:50 -04:00
u200 MAINTAINERS: Correct minor mistakes on some file listings 2023-07-25 12:44:47 -04:00
vim3 Revert "lib: string: Fix strlcpy return value", fix callers 2023-08-08 17:05:43 -04:00
w400 MAINTAINERS: Add some missing defconfig files to existing entries 2023-07-25 12:44:47 -04:00