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>
master
Patrik Lundquist 2015-06-26 10:43:56 +02:00 committed by David Sterba
parent b681e2536e
commit d26edf000c
1 changed files with 1 additions and 1 deletions

View File

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