btrfs-progs: fix overflows of ioctl name args
authorEric Sandeen <sandeen@redhat.com>
Fri, 25 Jan 2013 19:27:48 +0000 (13:27 -0600)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:41 +0000 (16:09 -0800)
commit899ba61fa695ae8e58599da25d174afa392fd552
tree01f68bbf84ebd8a4c12cf80a23fdabca4fb9b54c
parentbcb2b73358f1c05e6b5c48cfd19e3762cc69c677
btrfs-progs: fix overflows of ioctl name args

3 places where we copy pathnames into ioctl arguments
were not limited to the destination name size, and
could overflow.  Use the new strncpy_null() macro
to make this safe.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
btrfs-vol.c
cmds-receive.c