commit | 4dd800cb577c45b601fdf2bdaf1b471ea938f20b | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Fri Feb 28 23:10:03 2014 -0600 |
committer | Rob Landley <rob@landley.net> | Fri Feb 28 23:10:03 2014 -0600 |
tree | 89208c354b47898ff0a74d1b966665e49b4ee10c | |
parent | da60b9b163a598ae97d7566f095d5d69f53a6dab [diff] [blame] |
Fix another bug reported by Ashwini Sharma.
diff --git a/lib/lib.c b/lib/lib.c index 1126e11..a8195dd 100644 --- a/lib/lib.c +++ b/lib/lib.c
@@ -109,7 +109,7 @@ 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; }