btrfs-progs: restore: fix off-by-one len check
authorVincent Stehlé <vincent.stehle@freescale.com>
Thu, 8 Oct 2015 08:47:09 +0000 (10:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 16 Oct 2015 17:37:44 +0000 (19:37 +0200)
commitb585f03da47add466d21dd51d0623276ddb13411
treef94da1b3588537cc4603eb80b705f75baee836eb
parentd3be5b65dab602104829379144b22426f6b08206
btrfs-progs: restore: fix off-by-one len check

Fix a check of len versus PATH_MAX in function copy_symlink(), to
account for the terminating null byte.

Resolves-Coverity-CID: 1296749
Signed-off-by: Vincent Stehlé <vincent.stehle@freescale.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-restore.c