13828 beadm: Fix wrong array size
Review Request #2586 — Created May 22, 2021 and updated — Latest diff uploaded
Information | |
---|---|
nanxiao | |
illumos-gate | |
13828 | |
Reviewers | |
general | |
Since
ZFS_MAX_DATASET_NAME_LEN
has includedNUL
byte, the definition ofname
array incount_widths
andprint_be_snapshots
should be:char name[ZFS_MAX_DATASET_NAME_LEN];
not:
char name[ZFS_MAX_DATASET_NAME_LEN + 1];