btrfs-progs: inspect: Fix out of bounds string termination.
PATCH 1/1 btrfs-progs: inspect: Fix out of bounds string termination.
Signed-off-by Patrik Lundquist <[email protected]>
--- cmds-inspect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmds-inspect.c +1 -1
@@ -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:
Signature · 1 line
2.1.4
David Sterba
AppliedQuoted 1 line · Patrik Lundquist
Signed-off-by Patrik Lundquist <[email protected]>
Applied, thanks.