diff options
Diffstat (limited to 'lib/Input.cc')
-rw-r--r-- | lib/Input.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Input.cc b/lib/Input.cc index 4648d91..60e17c9 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -4,14 +4,17 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> + #ifdef HAVE_CONFIG_H #include "config.h" #endif + #ifdef HAVE_UNISTD_H #include <unistd.h> #else #include <io.h> #endif + #include "Input.h" #include "Exceptions.h" #include "gettext.h" @@ -89,7 +92,7 @@ Input::Input(const String & no) throw (GeneralException) : } else { // size = results.size; seek(results.ptr, SEEK_SET); - read(&size, 4); + size = readU32(); date_modif = 0; SetZ(); fromarchive = true; @@ -201,7 +204,7 @@ Archive::Archive(const String & fname, int atype) throw (GeneralException) : archive.read(buffer, len); buffer[len] = 0; ifname = buffer; - archive.read(&size, 4); + size = archive.readU32(); archive.read(buffer, 1); #ifdef DEBUG std::cerr << "Adding file `" << ifname << "' to node `" << p->name << "'\n"; |