summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Input.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index 319538c..11cb6ad 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -131,11 +131,13 @@ Input::Input(const String & no) throw (GeneralException) :
printm(M_INFO, String(_("Opening file in archive, position ")) + results.ptr + "\n");
#endif
seek(results.ptr, SEEK_SET);
- size = readU32();
+ size_t real_size = readU32();
date_modif = 0;
+ size = real_size;
+ SetZ();
fromarchive = true;
itell = 0;
- SetZ();
+ size = real_size;
}
}
@@ -203,10 +205,8 @@ int Input::wrapopen(const String & fname, openresults_t * results) {
}
void Input::SetZ(int l) throw(GeneralException) {
- if (!fromarchive) {
+ if (!fromarchive)
Handle::SetZ(l);
- size = -1;
- }
}
#ifdef HOOK_STDS