X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=4246eb11e51b03417520eee9bdbc2bf0f2f563fe;hp=716e299b5c02402097cd7dcdfe7907965f8fd551;hb=d88fecbec04b03e831e9dd8dfe488898bbeeb394;hpb=3ad33afa3db46e394c0a5055a7f6eff7113e8df6 diff --git a/gui.c b/gui.c index 716e299b..4246eb11 100644 --- a/gui.c +++ b/gui.c @@ -56,7 +56,7 @@ static unsigned scroll_position; static int curses_active; static pid_t cmd_pid; -static int command_fds[2]; +static int command_fds[2] = {-1, -1}; static int stat_pipe = -1; static struct gui_args_info conf; @@ -361,7 +361,7 @@ __printf_2_3 static void print_in_bar(int color, const char *fmt,...) xvasprintf(&msg, fmt, ap); va_end(ap); wmove(in.win, 0, 0); - align_str(in.win, msg, sb.cols, LEFT); + align_str(in.win, msg, in.cols, LEFT); free(msg); wrefresh(in.win); } @@ -1054,6 +1054,7 @@ repeat: close(command_fds[i]); command_fds[i] = -1; flags[i] = 0; + cbo[i] = 0; if (command_fds[!i] < 0) /* both fds closed */ return 0; }