Skip to content
Commit fbffce81 authored by Rodrigo Campos's avatar Rodrigo Campos Committed by Thomas Weißschuh
Browse files

tools/nolibc: Fix strlcpy() return code and size usage



The return code should always be strlen(src), and we should copy at most
size-1 bytes.

While we are there, make sure to null-terminate the dst buffer if we
copied something.

Signed-off-by: default avatarRodrigo Campos <rodrigo@sdfg.com.ar>
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
parent 34d232c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment