From: Martin Mares Date: Mon, 4 Oct 2004 16:45:56 +0000 (+0000) Subject: Double oops. X-Git-Tag: holmes-import~886 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d852cb0153c20c45b960748ee39c530ee77266f5;p=libucw.git Double oops. --- diff --git a/lib/lfs.h b/lib/lfs.h index 77a97803..85990dae 100644 --- 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; }