xref: /OK3568_Linux_fs/buildroot/package/ftop/0001-overflow.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Set tmp_buf and rate_buf to something ridiculously high to fix a buffer
2overflow when COLUMNS is large. - JeR
3
4(Taken from gentoo portage)
5Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
6
7--- a/src/ftop.c	2009-02-16 07:00:00.000000000 +0100
8+++ b/src/ftop.c	2013-09-06 14:42:41.788852952 +0200
9@@ -736,7 +736,7 @@
10 {
11     size_t i, j, bytes, bar_total;
12     char more_procs_ch, more_files_ch, expanded_ch;
13-    char tmp_buf[80], rate_buf[80];
14+    char tmp_buf[2048], rate_buf[2048];
15     char *tmp_str;
16     snapshot *s, *s_prev;
17     file_info *tmp_file;
18