From f3ee572920a169ea6714fa485afd39390867d9d8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 15 Feb 1998 18:10:41 +0000 Subject: [PATCH] bbcopy() leaves correct file positions. --- lib/fastbuf.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2