Project

General

Profile

Actions

Bug #13828

closed

beadm: Fix wrong array size

Added by Nan Xiao almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Since ZFS_MAX_DATASET_NAME_LEN has included NUL byte, the definition of name array in count_widths and print_be_snapshots should be:

char name[ZFS_MAX_DATASET_NAME_LEN];

not:

char name[ZFS_MAX_DATASET_NAME_LEN + 1];

Actions

Also available in: Atom PDF