btrfs-progs: use PATH_MAX in cmd_inspect_logical_resolve

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-09-13 12:13:44 +02:00
parent 91435117d7
commit 34673ebeb0
1 changed files with 1 additions and 1 deletions

View File

@ -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;