diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-25 03:00:24 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-25 03:00:24 +0100 |
commit | cfae9728fdae6921cdbb558092a9a76cf26211da (patch) | |
tree | 7f1d00cd25a6ba26cb9c851a35974bc42da7a6a3 /src | |
parent | 9f4c235dd7eba4f62bce7b271a0e114973babadd (diff) |
Fixing bug in SeekFrom; this is actually from the end of the file...
Diffstat (limited to 'src')
-rw-r--r-- | src/plugin-luaiup.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin-luaiup.cc b/src/plugin-luaiup.cc index c7cf128..4b2322d 100644 --- a/src/plugin-luaiup.cc +++ b/src/plugin-luaiup.cc @@ -37,7 +37,7 @@ class imBinFileHandle : public imBinFileBase { virtual int HasError() const { return 0; } virtual void SeekTo(unsigned long pOffset) { h->seek(pOffset, SEEK_SET); } virtual void SeekOffset(long pOffset) { h->seek(pOffset, SEEK_CUR); } - virtual void SeekFrom(long pOffset) { h->seek(pOffset, SEEK_SET); } + virtual void SeekFrom(long pOffset) { h->seek(pOffset, SEEK_END); } virtual unsigned long Tell() const { return h->tell(); } virtual int EndOfFile() const { return h->tell() == h->GetSize(); } protected: |