From d852cb0153c20c45b960748ee39c530ee77266f5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 4 Oct 2004 16:45:56 +0000 Subject: [PATCH] Double oops. --- lib/lfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5