From 3c71e9c99055d3cccd6bd8c4b67c1b3f0683a21d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 16 Dec 2008 10:52:15 +0100 Subject: [PATCH] Remove unneeded space after last column on bar with filling "columns" --- src/gui/gui-bar-window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/gui-bar-window.c b/src/gui/gui-bar-window.c index 4b09c0cec..122af68ea 100644 --- a/src/gui/gui-bar-window.c +++ b/src/gui/gui-bar-window.c @@ -490,8 +490,11 @@ gui_bar_window_content_get_with_filling (struct t_gui_bar_window *bar_window) content[index_content++] = ' '; } } - strcpy (content + index_content, space_with_reinit_color); - index_content += length_reinit_color; + if (j < columns - 1) + { + strcpy (content + index_content, space_with_reinit_color); + index_content += length_reinit_color; + } } content[index_content++] = '\n'; }