src/flac/utils.c : Make sure get_console_width() returns value > 0.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 8 Jul 2014 08:25:11 +0000 (18:25 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 8 Jul 2014 08:25:19 +0000 (18:25 +1000)
commit9443151da38d25430f0683dfdcd7f6076ecabe0a
tree6c0283d8b16f34d8eb5ef2171a6e35a13f4f18ca
parentd043785d41f28c53605736ba4c47b69df9c3fee1
src/flac/utils.c : Make sure get_console_width() returns value > 0.

Previous version of get_console_width() may return 0 which will result in
a division by 0 in stats_print_name():

console_width = get_console_width();
len = strlen_console(name)+2;
console_chars_left = console_width  - (len % console_width);

Bug-report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613
Patch-from: lvqcl <lvqcl.mail@gmail.com>
src/flac/utils.c