mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-09 19:58:55 +00:00
615828721a
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 |
||
---|---|---|
.. | ||
fb_command.c | ||
fb_common.c | ||
fb_getvar.c | ||
fb_mmc.c | ||
fb_nand.c | ||
Kconfig | ||
Makefile |