summaryrefslogtreecommitdiff
path: root/cmds-inspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-inspect.c')
-rw-r--r--cmds-inspect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-inspect.c b/cmds-inspect.c
index bdb7f637..053cf8ea 100644
--- a/cmds-inspect.c
+++ b/cmds-inspect.c
@@ -270,7 +270,7 @@ static int cmd_subvolid_resolve(int argc, char **argv)
int ret;
int fd = -1;
u64 subvol_id;
- char path[BTRFS_PATH_NAME_MAX + 1];
+ char path[PATH_MAX];
DIR *dirstream = NULL;
if (check_argc_exact(argc, 3))
@@ -293,7 +293,7 @@ static int cmd_subvolid_resolve(int argc, char **argv)
goto out;
}
- path[BTRFS_PATH_NAME_MAX] = '\0';
+ path[PATH_MAX] = '\0';
printf("%s\n", path);
out: