]> git.ipfire.org Git - thirdparty/grub.git/commit
misc: Implement grub_strlcpy()
authorB Horn <b@horn.uk>
Sat, 15 Jun 2024 01:33:08 +0000 (02:33 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 2 Dec 2024 16:32:51 +0000 (17:32 +0100)
commitea703528a8581a2ea7e0bad424a70fdf0aec7d8f
treeb3f4a910a1b95b5ef926887d913da0131dd4de53
parent6811f6f09d61996a3acbc4fc0414e45964f0e2d9
misc: Implement grub_strlcpy()

grub_strlcpy() acts the same way as strlcpy() does on most *NIX,
returning the length of src and ensuring dest is always NUL
terminated except when size is 0.

Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/misc.h