]> git.ipfire.org Git - thirdparty/shadow.git/commit
chfn: Replace STRFCPY() by STRLCPY()
authorAlejandro Colomar <alx@kernel.org>
Thu, 8 Jun 2023 18:39:04 +0000 (20:39 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commit8e33195c8e05169767e472ed73cd482aafdc2bea
treeb02166ab3b472099b23d6a5e589fe793a6beec66
parent5579b40e357a69df434b7549680d2e13ffab16e0
chfn: Replace STRFCPY() by STRLCPY()

The variables are only being read as strings (char *), so data after the
'\0' can't be leaked.

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>
src/chfn.c