diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-03-30 17:45:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-03-30 17:45:47 +0000 |
commit | 9c77ab066241d8c751b3a6f65276995ea53158ed (patch) | |
tree | 2f2461b6a1d0fcd19e80caf6a49be77dd9539be0 /usr.bin/ftp | |
parent | 9aa622384d393a5800bb890c4085a6ca93cdb0e4 (diff) |
stretch banners
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/util.c | 15 |
1 files changed, 10 insertions, 5 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, ""); } |