mirror of
https://github.com/G2-Games/lbee-utils.git
synced 2025-04-19 07:12:55 -05:00
Fixed issue that could occur when decoding CZ2 files
This commit is contained in:
parent
7dfef2a2dc
commit
4ef89309ec
1 changed files with 0 additions and 1 deletions
|
@ -164,7 +164,6 @@ pub fn decompress2<T: Seek + ReadBytesExt + Read>(
|
|||
|
||||
fn decompress_lzw2(input_data: &[u8], size: usize) -> Vec<u8> {
|
||||
let mut data = input_data.to_vec();
|
||||
data[0] = 0;
|
||||
let mut dictionary = HashMap::new();
|
||||
for i in 0..256 {
|
||||
dictionary.insert(i as u64, vec![i as u8]);
|
||||
|
|
Loading…
Reference in a new issue