- markus@cvs.openbsd.org 2003/09/23 20:18:52
[progressmeter.c]
don't print trailing \0; bug #709; Robert.Dahlem@siemens.com
ok millert/deraadt@
diff --git a/ChangeLog b/ChangeLog
index a25c731..5da6cd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,10 @@
cleanup_exit() function. re-refine cleanup_exit() where appropriate,
allocate sshd's authctxt eary to allow simpler cleanup in sshd.
tested by many, ok deraadt@
+ - markus@cvs.openbsd.org 2003/09/23 20:18:52
+ [progressmeter.c]
+ don't print trailing \0; bug #709; Robert.Dahlem@siemens.com
+ ok millert/deraadt@
20030930
- (bal) Fix issues in openbsd-compat/realpath.c
@@ -1244,4 +1248,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
-$Id: ChangeLog,v 1.3045 2003/10/02 06:12:36 dtucker Exp $
+$Id: ChangeLog,v 1.3046 2003/10/02 06:15:15 dtucker Exp $
diff --git a/progressmeter.c b/progressmeter.c
index c315464..a244acf 100644
--- a/progressmeter.c
+++ b/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"
@@ -200,7 +200,7 @@
strlcat(buf, " ", win_size);
}
- atomicio(vwrite, STDOUT_FILENO, buf, win_size);
+ atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
last_update = now;
}