Skip to content

Commit 017496c

Browse files
committed
Don't truncate property values at MAXNAMELEN use ZFS_MAXPROPLEN
Signed-off-by: Allan Jude <[email protected]>
1 parent d04575e commit 017496c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/zpool/zpool_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9879,7 +9879,7 @@ static int
98799879
get_callback(zpool_handle_t *zhp, void *data)
98809880
{
98819881
zprop_get_cbdata_t *cbp = (zprop_get_cbdata_t *)data;
9882-
char value[MAXNAMELEN];
9882+
char value[ZFS_MAXPROPLEN];
98839883
zprop_source_t srctype;
98849884
zprop_list_t *pl;
98859885

0 commit comments

Comments
 (0)