changeset 1212:86745958cea9

Fix another bug reported by Ashwini Sharma.
author Rob Landley <rob@landley.net>
date Fri, 28 Feb 2014 23:10:03 -0600
parents 40e0f7b09b77
children 5918424045a1
files lib/lib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lib.c	Fri Feb 28 23:04:57 2014 -0600
+++ b/lib/lib.c	Fri Feb 28 23:10:03 2014 -0600
@@ -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;
   }