diff options
author | pixel <pixel> | 2004-01-23 02:21:01 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-01-23 02:21:01 +0000 |
commit | a55113f8f917a409409f2244269df75a8cb828ac (patch) | |
tree | 90388acb6feb2d7483524f12d26f427933b27f23 /lib | |
parent | 54b2e02ffad603e044cc62ba2e3da30291ecf14c (diff) |
Small fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Input.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Input.cc b/lib/Input.cc index d81faef..22a688d 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Input.cc,v 1.41 2004-01-22 22:48:40 pixel Exp $ */ +/* $Id: Input.cc,v 1.42 2004-01-23 02:21:01 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -260,7 +260,7 @@ void Archive::create() throw (GeneralException) { FileTree * p = &filetree, * t; String ifname; int i; - + switch(type) { case ARCHIVE_EXECUTABLE: startptr = archive->tell(); @@ -285,6 +285,7 @@ void Archive::create() throw (GeneralException) { archive->seek(startptr - archive->tell() + maxptr, SEEK_CUR); } case ARCHIVE_BUILTIN: + memset(buffer, 0, 4); archive->read(buffer, 4); if (*((Uint32 *)buffer) != BUILTIN_SIG) throw GeneralException(_("Archive: not in built-in format.")); |