X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftape.c;h=1990be91bbb952a43c767f985abb3df27ab01775;hp=d80e49a842464af0432b4c28670bc0243a793c5d;hb=aa2fe29bc559dfbf17805267f10f7bf0b112750f;hpb=1828288114146017e0fc526d41b494a1d7bd3a2c diff --git a/dump/tape.c b/dump/tape.c index d80e49a..1990be9 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.76 2003/04/09 10:42:57 stelian Exp $"; + "$Id: tape.c,v 1.77 2003/04/18 07:47:57 stelian Exp $"; #endif /* not lint */ #include @@ -1133,10 +1133,10 @@ doslave(int cmd, if (compressed) { int bsiz = sizeof(struct tapebuf) + writesize; /* Add extra space to deal with compression enlarging the buffer */ - if (TP_BSIZE > writesize/64 + 19) + if (TP_BSIZE > writesize/16 + 67) bsiz += TP_BSIZE; else - bsiz += writesize/64 + 19; + bsiz += writesize/16 + 67; comp_buf = malloc(bsiz); if (comp_buf == NULL) quit("couldn't allocate a compress buffer.\n");