From ffb276bb49dd14f8cbe5b3e48f735b5e4f54b7b3 Mon Sep 17 00:00:00 2001 From: dtucker Date: Thu, 2 Oct 2003 06:15:15 +0000 Subject: - 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@ --- progressmeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'progressmeter.c') diff --git a/progressmeter.c b/progressmeter.c index c315464e..a244acf9 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; } -- cgit v1.2.1