]> git.ipfire.org Git - thirdparty/shadow.git/commit
Use STRLCPY() instead of its pattern
authorAlejandro Colomar <alx@kernel.org>
Sat, 29 Jul 2023 16:22:12 +0000 (18:22 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commit24367027d6aa3b2a906c303d3adc6020fcc1a0a3
treec78ea2c4ba0dcb49788fb72c3392f65e0206ca1d
parent370652ba058c6a1099d40fa813e0d8a71ba4cb4c
Use STRLCPY() instead of its pattern

This makes it harder to make mistakes while editing the code.  Since the
sizeof's can be autocalculated, let the machine do that.  It also
reduces the cognitive load while reading the code.

Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/console.c
lib/utmp.c
src/login.c
src/su.c