]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/: Use simple assignment instead of memcpy(3)
authorAlejandro Colomar <alx@kernel.org>
Wed, 16 Jul 2025 22:55:23 +0000 (00:55 +0200)
committerSerge Hallyn <serge@hallyn.com>
Fri, 28 Nov 2025 19:40:58 +0000 (13:40 -0600)
commite562faf109422e2108db2fec4770d8f9da13db03
treec617e6443506e36c9141fc006c3eea97f951a0bc
parentceaca8460f9c4b04622bd6c59e6b1ce9255198e5
lib/: Use simple assignment instead of memcpy(3)

memcpy(3) is overkill, and much more dangerous than simple assignment.
Simple assignment adds type safety, and removes any possibility of
buffer overflow due to accidentally specifying a wrong size.

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