]> mj.ucw.cz Git - libucw.git/commitdiff
Double oops.
authorMartin Mares <mj@ucw.cz>
Mon, 4 Oct 2004 16:45:56 +0000 (16:45 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 4 Oct 2004 16:45:56 +0000 (16:45 +0000)
lib/lfs.h

index 77a978033b76d16285e28540c1dc30846cf35edf..85990dae3c34fe94ea1becc9022d30658a9fefc8 100644 (file)
--- a/lib/lfs.h
+++ b/lib/lfs.h
@@ -43,7 +43,7 @@ sh_file_size(byte *name)
   int fd = sh_open(name, O_RDONLY);
   if (fd < 0)
     die("Cannot open %s: %m", name);
-  sh_off_t len = sh_seek(fd, 0, SEEK_SET);
+  sh_off_t len = sh_seek(fd, 0, SEEK_END);
   close(fd);
   return len;
 }