From 83011bb8bd41f89f5bb876a5c06f88344d1b560a Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 20 Mar 1997 19:37:30 +0000 Subject: [PATCH] Fix hash mark printing. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1465 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/ftp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 181d6b3ff..09d7838a0 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -539,6 +539,7 @@ copy_stream(FILE *from, FILE *to) int n; int bytes = 0; int werr; + int hashbytes = HASHBYTES; #ifdef HAVE_MMAP struct stat st; @@ -560,6 +561,10 @@ copy_stream(FILE *from, FILE *to) if(werr < 0) break; bytes += werr; + while(hash && bytes > hashbytes){ + putchar('#'); + hashbytes += HASHBYTES; + } } sec_fflush(to); if(n < 0)