From a55113f8f917a409409f2244269df75a8cb828ac Mon Sep 17 00:00:00 2001
From: pixel <pixel>
Date: Fri, 23 Jan 2004 02:21:01 +0000
Subject: Small fix

---
 lib/Input.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'lib')

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."));
-- 
cgit v1.2.3