summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/openssh/progressmeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/progressmeter.c b/crypto/openssh/progressmeter.c
index c315464..6afcca4 100644
--- a/crypto/openssh/progressmeter.c
+++ b/crypto/openssh/progressmeter.c
@@ -200,7 +200,7 @@ refresh_progress_meter(void)
strlcat(buf, " ", win_size);
}
- atomicio(vwrite, STDOUT_FILENO, buf, win_size);
+ atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
last_update = now;
}
OpenPOWER on IntegriCloud