From: Martin Mares Date: Sun, 15 Feb 1998 18:10:41 +0000 (+0000) Subject: bbcopy() leaves correct file positions. X-Git-Tag: holmes-import~1674 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f3ee572920a169ea6714fa485afd39390867d9d8;p=libucw.git bbcopy() leaves correct file positions. --- diff --git a/lib/fastbuf.c b/lib/fastbuf.c index d2e6255e..d9ec1243 100644 --- a/lib/fastbuf.c +++ b/lib/fastbuf.c @@ -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;