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
2016-02-08 14:08:09 +01:00
parent 769522753c
commit 8a7943fef6

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)
{