Fix hash mark printing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1465 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -539,6 +539,7 @@ copy_stream(FILE *from, FILE *to)
|
|||||||
int n;
|
int n;
|
||||||
int bytes = 0;
|
int bytes = 0;
|
||||||
int werr;
|
int werr;
|
||||||
|
int hashbytes = HASHBYTES;
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
struct stat st;
|
struct stat st;
|
||||||
@@ -560,6 +561,10 @@ copy_stream(FILE *from, FILE *to)
|
|||||||
if(werr < 0)
|
if(werr < 0)
|
||||||
break;
|
break;
|
||||||
bytes += werr;
|
bytes += werr;
|
||||||
|
while(hash && bytes > hashbytes){
|
||||||
|
putchar('#');
|
||||||
|
hashbytes += HASHBYTES;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sec_fflush(to);
|
sec_fflush(to);
|
||||||
if(n < 0)
|
if(n < 0)
|
||||||
|
Reference in New Issue
Block a user