diff options
-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.")); |