btrfs-progs: use safe copy for label buffer everywhere
authorDavid Sterba <dsterba@suse.com>
Thu, 24 Mar 2016 18:19:31 +0000 (19:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Mar 2016 14:26:38 +0000 (16:26 +0200)
commit91b70d4cf1a1aac0ed0a9e810e0499e91244e7fd
tree261e7d95c2336ef9158dddf677f199fca6eb8029
parent41f6ae4820b7c288a6688086bd1a61687a50e3f3
btrfs-progs: use safe copy for label buffer everywhere

There's a mix of opencoded strncpy + null termination, strncpy, memcppy
without termination etc. Unify them and use the helper.

Resolves-coverity-id: 1357105
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-convert.c
utils.c