]> mj.ucw.cz Git - libucw.git/commitdiff
bbcopy() leaves correct file positions.
authorMartin Mares <mj@ucw.cz>
Sun, 15 Feb 1998 18:10:41 +0000 (18:10 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 15 Feb 1998 18:10:41 +0000 (18:10 +0000)
lib/fastbuf.c

index d2e6255e1426af0c1f00989365e85c89b99749d3..d9ec1243d127fb02adad815dab903168d4d89140 100644 (file)
@@ -291,6 +291,7 @@ void bbcopy(struct fastbuf *f, struct fastbuf *t, uns l)
       wrbuf(t);
       if ((uns) read(f->fd, t->buffer, t->buflen) != t->buflen)
        die("bbcopy: %s exhausted", f->name);
+      f->pos = f->fdpos;
       f->fdpos += t->buflen;
       f->bstop = f->bptr = f->buffer;
       t->bptr = t->bufend;