summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/progressmeter.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/progressmeter.c')
-rw-r--r--usr.bin/ssh/progressmeter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/progressmeter.c b/usr.bin/ssh/progressmeter.c
index e4fd28f1643..8dc77dea0f8 100644
--- a/usr.bin/ssh/progressmeter.c
+++ b/usr.bin/ssh/progressmeter.c
@@ -64,7 +64,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: progressmeter.c,v 1.7 2003/06/10 22:20:52 deraadt Exp $");
+RCSID("$OpenBSD: progressmeter.c,v 1.8 2003/06/28 16:23:06 deraadt Exp $");
#include <libgen.h>
@@ -129,7 +129,7 @@ stop_progress_meter(void)
alarm(0);
draw_progress_meter();
if (foregroundproc() != 0)
- atomicio(write, fileno(stdout), "\n", 1);
+ atomicio(vwrite, fileno(stdout), "\n", 1);
}
static void
@@ -247,7 +247,7 @@ draw_progress_meter(void)
"%02d:%02d%s", i / 60, i % 60,
(cursize != totalbytes) ? " ETA" : " ");
}
- atomicio(write, fileno(stdout), buf, strlen(buf));
+ atomicio(vwrite, fileno(stdout), buf, strlen(buf));
}
static int