diff options
author | Rob Landley <rob@landley.net> | 2014-02-28 23:10:03 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-02-28 23:10:03 -0600 |
commit | 4dd800cb577c45b601fdf2bdaf1b471ea938f20b (patch) | |
tree | 89208c354b47898ff0a74d1b966665e49b4ee10c /lib | |
parent | da60b9b163a598ae97d7566f095d5d69f53a6dab (diff) | |
download | toybox-4dd800cb577c45b601fdf2bdaf1b471ea938f20b.tar.gz |
Fix another bug reported by Ashwini Sharma.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |