[flac-dev] [PATCH] for console width detection

lvqcl lvqcl.mail at gmail.com
Mon Jul 7 14:01:00 PDT 2014


A bug was reported here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613

get_console_width() may return 0, and there will be 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);

A simple patch is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: width.patch
Type: application/octet-stream
Size: 644 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140708/55d5c84d/attachment.obj 


More information about the flac-dev mailing list