]> 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>
Wed, 27 Jun 2018 08:34:22 +0000 (10:34 +0200)
commite0a7415b48cf986ae8359e88dfd1eee51b7a2cb8
treefd181f1e80811766eb9bfcb4e4071170ab392cb5
parentce0b0908b7753d6daf5162c9694f9c96bc8b563d
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