btrfs-progs: mkfs: fix reading rotational status value
authorDavid Sterba <dsterba@suse.com>
Wed, 21 Sep 2016 11:36:04 +0000 (13:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Sep 2016 11:36:04 +0000 (13:36 +0200)
commit90e3e630c2f641f3ceca32672e8e3a8ac0ceae8a
tree1a10ee9fa425c8ed0544fc82b047fc09866fee45
parentd75e061bcd46634cf97559ee43e889d1f21b11b5
btrfs-progs: mkfs: fix reading rotational status value

ASAN reports that we're reading beyond the bounds, and is right. The
variable is too short to store a nonempty string for atoi.

Signed-off-by: David Sterba <dsterba@suse.com>
mkfs.c