From a94c144f180edbb018c907ff1b9348880afd605a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 2 Jul 2010 06:50:06 +0200 Subject: Reverting the broken SetZ fixes, and trying another one. --- lib/Input.cc | 10 +++++----- 1 file 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 -- cgit v1.2.3