From: Andre Noll Date: Mon, 6 Jan 2014 17:54:59 +0000 (+0000) Subject: gui: Use proper column number in print_in_bar(). X-Git-Tag: v0.5.3~12^2~50 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=ebdfee53b908a7ffcf8b9f8f7f29d9c558a2f0a1;p=paraslash.git gui: Use proper column number in print_in_bar(). This function modifies the input window, not the status bar window. This bug is benign because both windows have the same number of columns. --- diff --git a/gui.c b/gui.c index 2a0174b8..aff2b1af 100644 --- a/gui.c +++ b/gui.c @@ -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); }