summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-25 03:00:24 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-25 03:00:24 +0100
commitcfae9728fdae6921cdbb558092a9a76cf26211da (patch)
tree7f1d00cd25a6ba26cb9c851a35974bc42da7a6a3 /src
parent9f4c235dd7eba4f62bce7b271a0e114973babadd (diff)
Fixing bug in SeekFrom; this is actually from the end of the file...
Diffstat (limited to 'src')
-rw-r--r--src/plugin-luaiup.cc2
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: