summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-01-26 11:16:56 -0500
committerColin Walters <walters@verbum.org>2016-01-26 11:16:56 -0500
commit769522753c25537e520adc322fa62e5390272add (patch)
treee56dbb2162a922b2b55e0e5651259540e062f745
parent34a96c03dd34636e654e8258b94da904d2923878 (diff)
downloadlibglnx-769522753c25537e520adc322fa62e5390272add.tar.gz
console: Don't delete last character of output text
Not sure why we were doing this...I guess people were working around it by adding their own spaces?
-rw-r--r--glnx-console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-console.c b/glnx-console.c
index 0911eaf..3973311 100644
--- a/glnx-console.c
+++ b/glnx-console.c
@@ -241,7 +241,7 @@ glnx_console_progress_text_percent (const char *text,
if (textlen > 0)
{
- fwrite (text, 1, textlen - 1, stdout);
+ fwrite (text, 1, textlen, stdout);
fputc (' ', stdout);
}