From: Pavel Charvat Date: Wed, 11 Apr 2007 08:09:36 +0000 (+0200) Subject: fixed a typo in bfilesize X-Git-Tag: holmes-import~506^2~87^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c8ec1e124ac9396a08bba4cc1aad113bdfa96a5a;p=libucw.git fixed a typo in bfilesize --- diff --git a/lib/fastbuf.c b/lib/fastbuf.c index 4817bab3..dcb8d20d 100644 --- a/lib/fastbuf.c +++ b/lib/fastbuf.c @@ -196,7 +196,7 @@ bfilesize(struct fastbuf *f) return 0; sh_off_t pos = btell(f); bflush(f); - if (!f->seek(f, pos, SEEK_END)) + if (!f->seek(f, 0, SEEK_END)) return -1; sh_off_t len = btell(f); bsetpos(f, pos);