Skip to content

Commit

Permalink
Don't truncate property values at MAXNAMELEN use ZFS_MAXPROPLEN
Browse files Browse the repository at this point in the history
Signed-off-by: Allan Jude <allan@klarasystems.com>
  • Loading branch information
allanjude committed Sep 6, 2021
1 parent d04575e commit 017496c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zpool/zpool_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9879,7 +9879,7 @@ static int
get_callback(zpool_handle_t *zhp, void *data)
{
zprop_get_cbdata_t *cbp = (zprop_get_cbdata_t *)data;
char value[MAXNAMELEN];
char value[ZFS_MAXPROPLEN];
zprop_source_t srctype;
zprop_list_t *pl;

Expand Down

0 comments on commit 017496c

Please sign in to comment.