From 56457bd325973f652f03e40fae328c415b860a3f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 13 Jul 2017 10:22:55 +0800 Subject: [PATCH] Fix lzma compressed ramdisk Fix issue #222 --- jni/magiskboot/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/magiskboot/compress.c b/jni/magiskboot/compress.c index db0f31ddf..5c815b55e 100644 --- a/jni/magiskboot/compress.c +++ b/jni/magiskboot/compress.c @@ -125,7 +125,7 @@ void lzma(int mode, const char* filename, const unsigned char* buf, size_t size) ret = lzma_auto_decoder(&strm, UINT64_MAX, 0); break; case 1: - ret = lzma_stream_encoder(&strm, filters, LZMA_CHECK_CRC64); + ret = lzma_stream_encoder(&strm, filters, LZMA_CHECK_CRC32); break; case 2: ret = lzma_alone_encoder(&strm, &opt);