[libglnx] console: Don't delete last character of output text
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libglnx] console: Don't delete last character of output text
- Date: Tue, 26 Jan 2016 19:54:00 +0000 (UTC)
commit 769522753c25537e520adc322fa62e5390272add
Author: Colin Walters <walters verbum org>
Date: Tue Jan 26 11:16:56 2016 -0500
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?
glnx-console.c | 2 +-
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]