s4:ntvfs: Fix string copy of share_name
commitaab4aca2602ef734c8e1b1faa50085f56e64f748
authorAndreas Schneider <asn@samba.org>
Tue, 15 May 2018 15:55:22 +0000 (15 17:55 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 27 Jun 2018 08:34:21 +0000 (27 10:34 +0200)
treedb892a7cce865eaaa0078c25209a6f377c104cce
parent461bd254c503c46b9c93dfdac292baffdc91f934
s4:ntvfs: Fix string copy of share_name

../source4/ntvfs/ipc/rap_server.c:70:3: error: ‘strncpy’ specified bound 13 equals destination size [-Werror=stringop-truncation]
   strncpy((char *)r->out.info[j].info1.share_name,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    snames[i],
    ~~~~~~~~~~
    sizeof(r->out.info[0].info1.share_name));
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 609ef35c12900bbd5ecaa557f7b5d71b5784a103)
source4/ntvfs/ipc/rap_server.c