summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-07-02 06:50:06 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-07-02 06:52:44 +0200
commita94c144f180edbb018c907ff1b9348880afd605a (patch)
treebacfae43922281816caed6f358c9e22cd0048dd4
parent92c0e8526a2b01be179574be13773dddf8cdafbc (diff)
Reverting the broken SetZ fixes, and trying another one.
-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