]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: test: Silence warning initialising compressed
authorMark Andrews <marka@isc.org>
Wed, 26 Mar 2025 12:42:53 +0000 (12:42 +0000)
committerMark Andrews <marka@isc.org>
Wed, 26 Mar 2025 12:42:53 +0000 (12:42 +0000)
commitf7161a263ae9005d54e30c7c45fbc38ba1de0013
tree2197898ceac6a4d128499c7df0f7303b9b04f290
parent8ac453ab7095c9fde196a4b874ae2c803b5708f5
parent6a6b6be824ead47e24d48ffd8ab7c8277618fbc8
fix: test: Silence warning initialising compressed

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).

Closes #5258

Merge branch '5258-avoid-warning-initialising-compresss' into 'main'

See merge request isc-projects/bind9!10326