From: Wouter Wijngaards Date: Tue, 12 Jun 2018 11:01:14 +0000 (+0000) Subject: - Fix buffer size warning in unit test. X-Git-Tag: release-1.7.3rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78767f2014dacbd06b1cb9aa413d7a0d9dc95c30;p=thirdparty%2Funbound.git - Fix buffer size warning in unit test. git-svn-id: file:///svn/unbound/trunk@4724 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index cb0b96cca..8cbd7d319 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -5,6 +5,7 @@ used, and ignored if found in unbound.conf. - Rename tls-additional-ports to tls-additional-port, because every line adds one port. + - Fix buffer size warning in unit test. 6 June 2018: Wouter - Patch to fix openwrt for mac os build darwin detection in configure. diff --git a/testcode/unitneg.c b/testcode/unitneg.c index 2b67df182..849d07d8b 100644 --- a/testcode/unitneg.c +++ b/testcode/unitneg.c @@ -94,7 +94,7 @@ static void print_neg_cache(struct val_neg_cache* neg) /** get static pointer to random zone name */ static char* get_random_zone(void) { - static char zname[256]; + static char zname[36]; int labels = random() % 3; int i; char* p = zname;