]> git.ipfire.org Git - thirdparty/shadow.git/commit
login: use strlcpy to always NUL terminate
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 26 Jan 2023 19:24:09 +0000 (20:24 +0100)
committerSerge Hallyn <serge@hallyn.com>
Mon, 21 Aug 2023 19:05:18 +0000 (14:05 -0500)
commit931e7c0c2fbcff472e489c5c5a1d42746d93868b
treee0c12701b0b216f3540b8353b9e81c24325332c6
parent15f4421f10c0056c9ae7619dbb5bc2fd4a54c95c
login: use strlcpy to always NUL terminate

    login.c:728:25: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]

Reviewed-by: Alejandro Colomar <alx@kernel.org>
src/login.c