Skip to content
Snippets Groups Projects
Commit 8a7943fe authored by Colin Walters's avatar Colin Walters
Browse files

console: Fix bar progress length

The previous fix added the last character of text, but failed to
account for the space we're adding.
parent 76952275
Branches
Tags
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment