s4:torture: Use strlcpy() in gen_name()
commit3ef6d6ab6dc1d8f220d0d9e3c8e47af682f3e115
authorAndreas Schneider <asn@samba.org>
Wed, 9 May 2018 15:35:45 +0000 (9 17:35 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 Jun 2018 07:22:24 +0000 (20 09:22 +0200)
tree32ab31fcb1b3ee642104c13cd30a04e76c68c55f
parentc16e479f49f5bf010f61a923435ca16393747340
s4:torture: Use strlcpy() in gen_name()

../source4/torture/basic/mangle_test.c: In function ‘gen_name’:
../source4/torture/basic/mangle_test.c:148:3: error: ‘strncpy’ output
    truncated before terminating nul copying 5 bytes from a string of the
    same length [-Werror=stringop-truncation]
   strncpy(p, "ABCDE", 5);
   ^~~~~~~~~~~~~~~~~~~~~~

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 7a00d90d668f53914ffe035c41a5e79e60b51521)
source4/torture/basic/mangle_test.c