From: Nick Bowler Date: Mon, 8 Feb 2010 01:19:31 +0000 (-0500) Subject: liblbx: Set the file offset in lbx_file_seek. X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/commitdiff_plain/d4ace0bf36e361874f881e64f7db4e3e132da699 liblbx: Set the file offset in lbx_file_seek. This function previously would do the underlying seek correctly, but not actually record what it did. This breaks lots of things, fix it. --- diff --git a/src/lbx.c b/src/lbx.c index 17bf976..c2db146 100644 --- a/src/lbx.c +++ b/src/lbx.c @@ -293,6 +293,8 @@ int lbx_file_seek(struct lbx_file_state *f, long offset, int whence) f->lbx->last_file = NULL; if (fops->seek(f->lbx->f, f->base + pos, SEEK_SET) != 0) return -1; + + f->offset = pos; f->lbx->last_file = f; f->eof = 0;