]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/: Use STRNCPY() instead of strncpy(3)
authorAlejandro Colomar <alx@kernel.org>
Wed, 15 Nov 2023 21:36:19 +0000 (22:36 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sun, 26 Nov 2023 12:48:18 +0000 (06:48 -0600)
commitce30dfe255c65f012eb383e6fb54ce68473a91fa
treeefc5608be095bb4ccf0cdef3e665a63ee700b7e2
parent225530b7e111adf7481c3e3ac172b386194c231c
lib/: Use STRNCPY() instead of strncpy(3)

We've recently fixed several bugs in the calculation of the size in this
function call.  Use this wrapper to prevent similar mistakes in the
future.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/log.c
lib/utmp.c