From c8ec1e124ac9396a08bba4cc1aad113bdfa96a5a Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Wed, 11 Apr 2007 10:09:36 +0200 Subject: [PATCH] fixed a typo in bfilesize --- lib/fastbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2