summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_support_format_lha.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-08-08 04:15:09 -0400
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-08-08 04:15:09 -0400
commit3d6ebc25c2e073f95726a043146cd20fd8f24d1b (patch)
treee28b95a84005a23921899ed6b42ca1b3ebad110e /libarchive/archive_read_support_format_lha.c
parenta4f99f2fc1d5edb6ad6f64458cd637fb5619a39f (diff)
downloadlibarchive-3d6ebc25c2e073f95726a043146cd20fd8f24d1b.tar.gz
Fix a bug in lha reader. Give plenty bits to a pattern table.
12 bits was too short for a bit length of the pattern table. SVN-Revision: 3561
Diffstat (limited to 'libarchive/archive_read_support_format_lha.c')
-rw-r--r--libarchive/archive_read_support_format_lha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_lha.c b/libarchive/archive_read_support_format_lha.c
index ec039576..51500367 100644
--- a/libarchive/archive_read_support_format_lha.c
+++ b/libarchive/archive_read_support_format_lha.c
@@ -1789,7 +1789,7 @@ lzh_decode_init(struct lzh_stream *strm, const char *method)
!= ARCHIVE_OK)
return (ARCHIVE_FATAL);
ds->lt.len_bits = 9;
- if (lzh_huffman_init(&(ds->pt), PT_BITLEN_SIZE, 12)
+ if (lzh_huffman_init(&(ds->pt), PT_BITLEN_SIZE, 16)
!= ARCHIVE_OK)
return (ARCHIVE_FATAL);
ds->error = 0;