btrfs-progs: convert: rework checks of label size
authorDavid Sterba <dsterba@suse.com>
Wed, 2 Sep 2015 16:02:23 +0000 (18:02 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 2 Sep 2015 16:56:54 +0000 (18:56 +0200)
commita426f18baf519f6694ef923bd7d046041d190dee
tree00d628633aacc315f205fc623d406fa4b4068eb2
parent13be89d82ee9a233a30e7ed1ef09dff242dfcaa6
btrfs-progs: convert: rework checks of label size

Coverity complains that the fslabel might be longer than the superblock
buffer, down in do_convert.

The label is at most 255 bytes, terminated by zero. Use buffers of the
right size.

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