diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-09-23 20:18:53 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-09-23 20:18:53 +0000 |
commit | 33969b821fb937064b7306c224c4f5930425408c (patch) | |
tree | b058475162137d71b18d00d974bdd919836850c1 /usr.bin/ssh | |
parent | 2a189bfd0a5929ead66912f07789b8181460ec6c (diff) |
don't print trailing \0; bug #709; Robert.Dahlem@siemens.com
ok millert/deraadt@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/progressmeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/progressmeter.c b/usr.bin/ssh/progressmeter.c index 4b82ad9b844..0520f582fc4 100644 --- a/usr.bin/ssh/progressmeter.c +++ b/usr.bin/ssh/progressmeter.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: progressmeter.c,v 1.15 2003/08/31 12:14:22 markus Exp $"); +RCSID("$OpenBSD: progressmeter.c,v 1.16 2003/09/23 20:18:52 markus Exp $"); #include "progressmeter.h" #include "atomicio.h" @@ -199,7 +199,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; } |