Index: iptraf-ng/src/tui/winops.c =================================================================== --- iptraf-ng.orig/src/tui/winops.c +++ iptraf-ng/src/tui/winops.c @@ -28,7 +28,7 @@ void tx_colorwin(WINDOW * win) { int ctr; char *blankpad; - blankpad = (char *) malloc(sizeof(char) * (COLS + 1)); + blankpad = (char *) malloc(sizeof(char) * (COLS + 2)); strcpy(blankpad, ""); @@ -50,7 +50,7 @@ void tx_wcoloreol(WINDOW *win) int y, x; int cury, curx; char sp_buf[10]; - + getyx(win, cury, curx); getmaxyx(win, y, x); sprintf(sp_buf, "%%%dc", x - curx - 1);