From 6cc310bd5fd4d15ad8194096e88741f7c17a3cbd Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 2 Oct 2003 16:15:15 +1000 Subject: [PATCH] - 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@ --- ChangeLog | 6 +++++- progressmeter.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a25c731b0..5da6cd64e 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 c315464ee..a244acf96 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 @@ 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; }