]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super0: use define for char array in examine_super0
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Thu, 4 Jul 2024 12:53:35 +0000 (14:53 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 30 Jul 2024 13:59:24 +0000 (15:59 +0200)
commit0af8c9ebf50b68ad5f80efad7e94688235544a3d
treee0adf1da970ca29b8bbd6bb310a8e38b9a31f8fb
parent2bb4efb504d0991eaba755242d3e70facb5d994b
super0: use define for char array in examine_super0

Using nb with 11 length may cause format-truncation errors,
because it was possible to use snprintf with 12 length input
and write it to 11 length output. Added new define and use it
to avoid this error.

Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
mdadm.h
super0.c