mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +08:00
Fix bug
This commit is contained in:
@@ -130,7 +130,7 @@ impl SimpleCrypt {
|
|||||||
let mut data = Vec::with_capacity(uncompressed as usize + 2);
|
let mut data = Vec::with_capacity(uncompressed as usize + 2);
|
||||||
data.push(0xff);
|
data.push(0xff);
|
||||||
data.push(0xfe);
|
data.push(0xfe);
|
||||||
data.resize(uncompressed as usize, 0);
|
data.resize(uncompressed as usize + 2, 0);
|
||||||
stream.decompress(
|
stream.decompress(
|
||||||
&reader.data[reader.pos..],
|
&reader.data[reader.pos..],
|
||||||
&mut data[2..],
|
&mut data[2..],
|
||||||
|
|||||||
Reference in New Issue
Block a user