]> git.ipfire.org Git - thirdparty/bind9.git/commit
Silence warning when initialising compress
authorMark Andrews <marka@isc.org>
Wed, 26 Mar 2025 03:31:25 +0000 (14:31 +1100)
committerMark Andrews <marka@isc.org>
Wed, 26 Mar 2025 12:09:02 +0000 (12:09 +0000)
commit6a6b6be824ead47e24d48ffd8ab7c8277618fbc8
tree2197898ceac6a4d128499c7df0f7303b9b04f290
parent8ac453ab7095c9fde196a4b874ae2c803b5708f5
Silence warning when initialising compress

The string literal initialalising compressed was too big for the
array as it has an unwanted NUL terminator.  This is allowed for
in C for historical reasons but produces a warning with some
compilers.  Adjust the declaration to include the NUL and adjust
the users to pass in an adjusted size which excludes the NUL rather
than sizeof(compressed).
tests/dns/name_test.c