console: Fix bar progress length

The previous fix added the last character of text, but failed to
account for the space we're adding.
This commit is contained in:
Colin Walters committed 2016-02-08 14:09:13 +01:00
1 parent 769522753c
commit 8a7943fef6
1 file changed
+1 -1
+1 -1
View File
@@ -237,7 +237,7 @@ glnx_console_progress_text_percent (const char *text,
}
textlen = MIN (input_textlen, ncolumns - bar_min);
barlen = ncolumns - textlen;
barlen = ncolumns - (textlen + 1);
if (textlen > 0)
{