summaryrefslogtreecommitdiff
path: root/src/lib/file_group.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-27 23:30:13 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-28 20:58:56 +0100
commitcf26869c2789b7ecf91e486fc3c7bf271276a592 (patch)
tree5f945ce6382e06344a26d4b7e5ab31ffca0186f1 /src/lib/file_group.h
parent9121eb64810e39ba356d4a1b723a720adc82c096 (diff)
Fix over-read behaviour of FileGroup to be the same on all platforms.
Instead of relying on the operating system's behaviour when seeking off the end of a file, keep our own _position. This normalises the behaviour between POSIX and Windows.
Diffstat (limited to 'src/lib/file_group.h')
-rw-r--r--src/lib/file_group.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/file_group.h b/src/lib/file_group.h
index 21499f563..0e26d64ec 100644
--- a/src/lib/file_group.h
+++ b/src/lib/file_group.h
@@ -53,6 +53,7 @@ private:
mutable size_t _current_path;
mutable FILE* _current_file;
mutable size_t _current_size;
+ mutable int64_t _position;
};
#endif