]> mj.ucw.cz Git - libucw.git/commitdiff
fixed a typo in bfilesize
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Wed, 11 Apr 2007 08:09:36 +0000 (10:09 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Wed, 11 Apr 2007 08:09:36 +0000 (10:09 +0200)
lib/fastbuf.c

index 4817bab3779095a4ce63bd05a0a00279a2bbe56a..dcb8d20dc0fe305b1229b2418ee89390bb4ae0ad 100644 (file)
@@ -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);