summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-02-08 14:08:09 +0100
committerColin Walters <walters@verbum.org>2016-02-08 14:09:13 +0100
commit8a7943fef6061a4e9ca368e0042a8a3924affb99 (patch)
treeb588ce26e6f311ce971d80e1362f8e3832d8dfba
parent769522753c25537e520adc322fa62e5390272add (diff)
downloadlibglnx-8a7943fef6061a4e9ca368e0042a8a3924affb99.tar.gz
console: Fix bar progress lengthv2016.1
The previous fix added the last character of text, but failed to account for the space we're adding.
-rw-r--r--glnx-console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-console.c b/glnx-console.c
index 3973311..f9d8baa 100644
--- a/glnx-console.c
+++ b/glnx-console.c
@@ -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)
{