s3:libnet: Fix format-truncation warning in samsync_ldif
commit7b6a1de1bd0e401be14c64128be33c7c3eee208e
authorAndreas Schneider <asn@samba.org>
Wed, 13 Jun 2018 15:56:59 +0000 (13 17:56 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 27 Jun 2018 08:34:21 +0000 (27 10:34 +0200)
tree07823c6d98571aeff157149c70052fdd7cdaf1c8
parent6aaf3a88f4bdc0f8fe34779c24b7716fe641561e
s3:libnet: Fix format-truncation warning in samsync_ldif

error: ā€˜%sā€™ directive output may be truncated writing up to 255 bytes
into a region of size 250 [-Werror=format-truncation=]
    snprintf(homedir, sizeof(homedir), "/home/%s", username);
                                                  ^~   ~~~~~~~~

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>
source3/libnet/libnet_samsync_ldif.c