btrfs-progs: remove variable length stack arrays
authorZach Brown <zab@redhat.com>
Wed, 14 Aug 2013 23:16:35 +0000 (16:16 -0700)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Sep 2013 17:41:03 +0000 (19:41 +0200)
commitfd074864c4cc319f1969b9b3513cef654a6648ea
tree5bfce93cc02d87c9427efa9473b0d4180ea11f23
parent19a2e1f4611eeff9668dacecafb6e51b5ca0f704
btrfs-progs: remove variable length stack arrays

sparse hates variable length array definitions on the stack:

 btrfs-show-super.c:155:21: warning: Variable length array is used.

And it's right to.  They're a fragile construct that doesn't handle bad
input well at all.

Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-show-super.c
volumes.c