From 4dd800cb577c45b601fdf2bdaf1b471ea938f20b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 28 Feb 2014 23:10:03 -0600 Subject: Fix another bug reported by Ashwini Sharma. --- lib/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib.c b/lib/lib.c index 1126e11e..a8195dd4 100644 --- a/lib/lib.c +++ b/lib/lib.c @@ -109,7 +109,7 @@ off_t lskip(int fd, off_t offset) or = readall(fd, libbuf, try); if (or < 0) perror_exit("lskip to %lld", (long long)offset); - else offset -= try; + else offset -= or; if (or < try) break; } -- cgit v1.2.3