Btrfs-progs: set string end sing '\0' for property
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 25 Apr 2014 10:44:03 +0000 (18:44 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 2 May 2014 15:05:37 +0000 (17:05 +0200)
commit21a1ff8887d0f23d18ef0606b2bf2092e4634454
tree14534eef2ab243053bb8166f56e0f3d3519739c3
parent9317400a67ea9c66fe727b21ddf0e7d925dbdaf1
Btrfs-progs: set string end sing '\0' for property

Set string "xattr_name" 's end with '\0' so that it won't be
violated in memory.

With this fix, xfstest/btrfs/048 can pass on my box.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Filipe Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
props.c