diff options
author | Zach Brown <zab@redhat.com> | 2013-08-06 11:49:04 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-09-03 19:40:52 +0200 |
commit | 6a0af4e57b58e9756e246db6967423ea6fa83265 (patch) | |
tree | 1eb84334ca9622d73ede5c72aaf01b012cea1dcc /file-item.c | |
parent | 689ad3e362c1e6d54ef7b6876dbb64e1e51b8cf1 (diff) |
btrfs-progs: don't overrun "answer" array in cmds-chunk.c
Eric noticed the trivial stack overflow bug in ask_user(). I went to
see the context for that fix and found that ask_user() was a bit much.
This fixes the overflow bug that Eric found, endless spinning on scanf()
errors, removes dead code, and leaves us with a trivial helper.
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>
Diffstat (limited to 'file-item.c')
0 files changed, 0 insertions, 0 deletions