1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00
Andreas Schneider 7a00d90d66 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>
2018-05-17 17:30:09 +02:00
..
2018-05-10 20:02:23 +02:00
2018-05-10 20:02:23 +02:00
2018-05-12 02:09:25 +02:00
2018-05-12 02:09:26 +02:00
2018-05-12 02:09:27 +02:00
2018-05-12 02:09:26 +02:00
2013-09-05 13:46:10 -07:00
2017-11-20 21:41:15 +01:00