diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-04-23 17:24:22 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-04-23 17:24:22 +0000 |
commit | eea55e45be37a38a576a8a1c1fd436d4696bb3c8 (patch) | |
tree | fc8787065bb03d9a31b1a4a29bbd473b1eaab4a3 | |
parent | d296535d38deacd0da9ef70aa54fbe43caa1f6c8 (diff) | |
download | zsh-eea55e45be37a38a576a8a1c1fd436d4696bb3c8.tar.gz zsh-eea55e45be37a38a576a8a1c1fd436d4696bb3c8.tar.xz zsh-eea55e45be37a38a576a8a1c1fd436d4696bb3c8.zip |
unposted: fix error message for short ZWC file
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/parse.c | 2 |
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) { |