]> git.ipfire.org Git - thirdparty/grub.git/commit
term/serial: Use grub_strncpy() instead of grub_snprintf() when only copying string
authorGlenn Washburn <development@efficientek.com>
Wed, 28 Jun 2023 07:47:09 +0000 (02:47 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 3 Jul 2023 12:07:49 +0000 (14:07 +0200)
commit712309eaae043f3a062a7c1dcf94f7c8059fcbcf
tree160b39e47fc3cd88a74e035072cad132cdd5fb45
parent7c1a022d78b643ae789a1160d1fbfc3844310935
term/serial: Use grub_strncpy() instead of grub_snprintf() when only copying string

Using grub_strncpy() instead of grub_snprintf() is less overhead and
indicates clearly that the dest should be the same string as the source.

Also fix indentation.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/term/serial.c