commit | 9443151da38d25430f0683dfdcd7f6076ecabe0a | [log] [tgz] |
---|---|---|
author | Erik de Castro Lopo <erikd@mega-nerd.com> | Tue Jul 08 18:25:11 2014 +1000 |
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | Tue Jul 08 18:25:19 2014 +1000 |
tree | 6c0283d8b16f34d8eb5ef2171a6e35a13f4f18ca | |
parent | d043785d41f28c53605736ba4c47b69df9c3fee1 [diff] |
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>