summaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev_label.c
diff options
context:
space:
mode:
authorPhilip Pokorny <[email protected]>2020-05-06 17:17:38 -0700
committerGitHub <[email protected]>2020-05-06 17:17:38 -0700
commita36bad17596e5cbc472a0d1fecb200a6b2e3530d (patch)
tree706d72bdd5db9a3a3af0dc61b1b7c8b0657e4edc /module/zfs/vdev_label.c
parent1b664952ae34d28c0408c20947f8aa5420c4ab63 (diff)
Fix column width calculation issue with certain terminal widths
If the reported terminal width is 0 or less than 42, the signed variable width was set to a negative number that was then assigned to the unsigned column width becoming a huge number. Add comments and change logic to better explain what's happening. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Philip Pokorny <[email protected]> Closes #10247
Diffstat (limited to 'module/zfs/vdev_label.c')
0 files changed, 0 insertions, 0 deletions