summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-30 17:45:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-30 17:45:47 +0000
commit9c77ab066241d8c751b3a6f65276995ea53158ed (patch)
tree2f2461b6a1d0fcd19e80caf6a49be77dd9539be0
parent9aa622384d393a5800bb890c4085a6ca93cdb0e4 (diff)
stretch banners
-rw-r--r--usr.bin/ftp/util.c15
-rw-r--r--usr.bin/ssh/scp.c15
2 files changed, 19 insertions, 11 deletions
diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c
index 4600bc5e8bf..365dd32012b 100644
--- a/usr.bin/ftp/util.c
+++ b/usr.bin/ftp/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.28 2002/02/19 18:38:01 mpech Exp $ */
+/* $OpenBSD: util.c,v 1.29 2002/03/30 17:45:44 deraadt Exp $ */
/* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */
/*
@@ -35,7 +35,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: util.c,v 1.28 2002/02/19 18:38:01 mpech Exp $";
+static char rcsid[] = "$OpenBSD: util.c,v 1.29 2002/03/30 17:45:44 deraadt Exp $";
#endif /* not lint */
/*
@@ -665,7 +665,7 @@ progressmeter(flag)
off_t cursize, abbrevsize;
double elapsed;
int ratio, barlength, i, remaining;
- char buf[256];
+ char buf[512];
if (flag == -1) {
(void)gettimeofday(&start, (struct timezone *)0);
@@ -690,8 +690,13 @@ progressmeter(flag)
i = barlength * ratio / 100;
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
"|%.*s%*s|", i,
-"*****************************************************************************"
-"*****************************************************************************",
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************",
barlength - i, "");
}
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index 159e4bb7a60..f38a5e9d4c4 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -75,7 +75,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: scp.c,v 1.86 2001/12/05 03:56:39 itojun Exp $");
+RCSID("$OpenBSD: scp.c,v 1.87 2002/03/30 17:45:46 deraadt Exp $");
#include "xmalloc.h"
#include "atomicio.h"
@@ -1073,7 +1073,7 @@ progressmeter(int flag)
off_t cursize, abbrevsize;
double elapsed;
int ratio, barlength, i, remaining;
- char buf[256];
+ char buf[512];
if (flag == -1) {
(void) gettimeofday(&start, (struct timezone *) 0);
@@ -1099,10 +1099,13 @@ progressmeter(int flag)
i = barlength * ratio / 100;
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
"|%.*s%*s|", i,
- "***************************************"
- "***************************************"
- "***************************************"
- "***************************************",
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************"
+ "*******************************************************",
barlength - i, "");
}
i = 0;