nsswitch: linux: Remove use of strcpy().
authorJeremy Allison <jra@samba.org>
Wed, 16 Mar 2016 16:37:42 +0000 (09:37 -0700)
committerMartin Schwenke <martins@samba.org>
Tue, 22 Mar 2016 03:38:24 +0000 (04:38 +0100)
commit7e435d3cceb2f2c970d725e6516e3191ac06980f
treef37411afee4864170b85b9b3d436865670119919
parente9586a653c62b996f1a183c897308ea0794c1cb7
nsswitch: linux: Remove use of strcpy().

The previous use was safe, but having *any* use of strcpy inside
our code sets off security flags. Replace with an explicit length
calculation and memcpy.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
nsswitch/winbind_nss_linux.c