libsmartcols: fix title aligning to center

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2016-01-21 17:36:53 +01:00
parent 284ee2a9a4
commit 7bc451694f
1 changed files with 1 additions and 1 deletions

View File

@ -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);