From 7bc451694fdea21469e2c45e89bc0e1d30ad6212 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 21 Jan 2016 17:36:53 +0100 Subject: [PATCH] libsmartcols: fix title aligning to center Signed-off-by: Igor Gnatenko --- libsmartcols/src/table_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index 6bb2753dc..fcf827075 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -574,7 +574,7 @@ static void print_title(struct libscols_table *tb) break; case SCOLS_TITLE_CENTER: - for (i = 0; i <= (tb->termwidth - len) / 2; i++) + for (i = 0; i < (tb->termwidth - len) / 2; i++) fputs(tb->symbols->title_wrap, tb->out); fputs(tb->title, tb->out);