]> git.ipfire.org Git - thirdparty/shadow.git/commit
Prefer strcpy(3) to strlcpy(3) when either works
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Mar 2023 08:02:45 +0000 (00:02 -0800)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 28 Mar 2023 11:00:38 +0000 (13:00 +0200)
commitea3d49506fb144348be10eba6f6fe1250b875a48
tree33752922f0c2378a911a798b9ca6bcae0abb2990
parenta926a26f0c69ab10e3f9a5335b84b4ab4ac91db1
Prefer strcpy(3) to strlcpy(3) when either works

* lib/gshadow.c (sgetsgent): Use strcpy(3) not strlcpy(3),
since the string is known to fit.

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
lib/gshadow.c