X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftape.c;h=c6161bedbec52d4863d00af48831f349ec474f0b;hp=54b387eac62559d092a687ab18eca75d7a36a479;hb=f75cc889d49eebab28ee47034e875ac0eac114a6;hpb=ed7c25a371480f96746518a4c4d4bb932ae16b77 diff --git a/dump/tape.c b/dump/tape.c index 54b387e..c6161be 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.68 2002/05/21 15:48:46 stelian Exp $"; + "$Id: tape.c,v 1.69 2002/07/01 11:54:40 stelian Exp $"; #endif /* not lint */ #include @@ -479,7 +479,7 @@ flushtape(void) blocksthisvol += ntrec; if (!pipeout && !unlimited) { if (blocksperfile) { - if ( compressed ? (bytes_written - tapea_bytes + SLAVES * (writesize + sizeof(struct tapebuf))) >= blocksperfile * 1024 + if ( compressed ? (bytes_written - tapea_bytes + SLAVES * (writesize + sizeof(struct tapebuf))) >= (((long long)blocksperfile) * 1024) : blocksthisvol >= blocksperfile ) { close_rewind(); startnewtape(0);