-
Rodrigo Campos authored
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:
Rodrigo Campos <rodrigo@sdfg.com.ar> Signed-off-by:
Thomas Weißschuh <linux@weissschuh.net>
fbffce81