mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 07:32:22 +00:00
btrfs-progs: inspect: Fix out of bounds string termination.
Signed-off-by: Patrik Lundquist <patrik.lundquist@gmail.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
b681e2536e
commit
d26edf000c
@ -293,7 +293,7 @@ static int cmd_subvolid_resolve(int argc, char **argv)
|
||||
goto out;
|
||||
}
|
||||
|
||||
path[PATH_MAX] = '\0';
|
||||
path[PATH_MAX - 1] = '\0';
|
||||
printf("%s\n", path);
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user