summaryrefslogtreecommitdiff
path: root/cmds-inspect.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-09-13 12:13:44 +0200
committerDavid Sterba <dsterba@suse.com>2016-10-03 11:33:15 +0200
commit34673ebeb097478f9afd38032924839b2010b5e7 (patch)
treef7013c872b04bd7d6a75e95b2ba9b2464d19f88c /cmds-inspect.c
parent91435117d7e57f08521d8739f593ed57413e4d9d (diff)
btrfs-progs: use PATH_MAX in cmd_inspect_logical_resolve
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-inspect.c')
-rw-r--r--cmds-inspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-inspect.c b/cmds-inspect.c
index d493544..6d4e2b8 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;