]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
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)
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


Trivial merge