]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:registry: Fix buffer truncation issues issues with gcc8
authorAndreas Schneider <asn@samba.org>
Mon, 18 Jun 2018 08:34:27 +0000 (10:34 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 25 Jun 2018 19:47:19 +0000 (21:47 +0200)
commit5f2859e958e110952b73b785975420a350497cc8
tree715ec21b97ec54ef1f27c4c485da118144fd4701
parentbe00b892e9183e1980b8445a071003fc56f439e5
s3:registry: Fix buffer truncation issues issues with gcc8

../source3/registry/reg_perfcount.c: In function ‘reg_perfcount_get_hkpd’:
../source3/registry/reg_perfcount.c:337:29: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
   snprintf(buf, buflen,"%d%s", key_part1, key_part2);

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 29f6842ee86b768f3677b38c5640655e312c398e)
source3/registry/reg_perfcount.c