summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/parse.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bd1cd45f0..170c5761f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-04-23  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Src/parse.c: make sure we get "invalid zwc file"
+	for a short file (not "wrong version").
+
 	* 23313: Src/parse.c: the shell didn't actually check the version
 	of ZWC files anyway.
 
diff --git a/Src/parse.c b/Src/parse.c
index e830f870f..892573e18 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -2607,7 +2607,7 @@ bin_zcompile(char *nam, char **args, Options ops, UNUSED(int func))
 static Wordcode
 load_dump_header(char *nam, char *name, int err)
 {
-    int fd, v = 0;
+    int fd, v = 1;
     wordcode buf[FD_PRELEN + 1];
 
     if ((fd = open(name, O_RDONLY)) < 0) {