From 34673ebeb097478f9afd38032924839b2010b5e7 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 13 Sep 2016 12:13:44 +0200 Subject: btrfs-progs: use PATH_MAX in cmd_inspect_logical_resolve Signed-off-by: David Sterba --- cmds-inspect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-inspect.c b/cmds-inspect.c index d493544a..6d4e2b87 100644 --- a/cmds-inspect.c +++ b/cmds-inspect.c @@ -146,7 +146,7 @@ static int cmd_inspect_logical_resolve(int argc, char **argv) struct btrfs_ioctl_logical_ino_args loi; struct btrfs_data_container *inodes; u64 size = 4096; - char full_path[4096]; + char full_path[PATH_MAX]; char *path_ptr; DIR *dirstream = NULL; -- cgit v1.2.3