Ricardo Catalinas Jiménez <jimenezrick(a)gmail.com> writes:
1. Using iptraf-ng 1.1.2 on Arch Linux x86_64, window resize seems
broken. A segmentation fault happens when the terminal size changes.
But probably you are aware of this bug :-/
I'm aware of this bug, but I cannot reproduce it on my machine. What
size are you using?
Could you please try patch
diff --git a/src/tui/winops.c b/src/tui/winops.c
index 139e8ce..a0c0e6b 100644
--- a/src/tui/winops.c
+++ b/src/tui/winops.c
@@ -31,16 +31,16 @@ void tx_colorwin(WINDOW * win)
{
int ctr;
char *blankpad;
- blankpad = (char *) malloc(sizeof(char) * (COLS + 1));
+ blankpad = (char *) xmalloc(sizeof(char) * (getmaxx(win) + 1));
strcpy(blankpad, "");
- for (ctr = 0; ctr <= getmaxx(win); ctr++) {
+ for (ctr = 0; ctr < getmaxx(win); ctr++) {
strcat(blankpad, " ");
}
scrollok(win, 0);
- for (ctr = 0; ctr <= getmaxy(win); ctr++) {
+ for (ctr = 0; ctr < getmaxy(win); ctr++) {
wmove(win, ctr, 0);
wprintw(win, "%s", blankpad);
}
2. Arch Linux uses ncurses compiled with wide character support by
default but with symlinks from libncursesw.so to libncurses.so for
compatibility. But only `ncursesw5-config' is installed. Would be
great to improve configure.ac:
we drop autotools and using only handmade Makefile. I'm going to prepare
patch for that. It will show up in next release.
Best regards and thanks for such a great project!
you are welcome ;)
--
Nikola