mirror of
https://github.com/kdave/btrfs-progs
synced 2025-05-04 17:07:55 +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;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
path[PATH_MAX] = '\0';
|
path[PATH_MAX - 1] = '\0';
|
||||||
printf("%s\n", path);
|
printf("%s\n", path);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user