diff --git a/glnx-console.c b/glnx-console.c
index 0911eaff163b3c85d513e2ae2e68b08c521e4f8b..397331186213ecbb5a1acd17a4c9a847d4a407e6 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);
     }