From 8edf556c9e1a9867c054935518898a3ba5c2df36 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Fri, 11 Feb 2022 10:37:59 +0800 Subject: [PATCH] Fix lz4_lg compress --- native/jni/magiskboot/compress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/magiskboot/compress.cpp b/native/jni/magiskboot/compress.cpp index d37863946..2070cf341 100644 --- a/native/jni/magiskboot/compress.cpp +++ b/native/jni/magiskboot/compress.cpp @@ -522,7 +522,7 @@ protected: return false; } if (bwrite(&block_sz, sizeof(block_sz)) && bwrite(out_buf, block_sz)) { - in_total += sizeof(block_sz) + block_sz; + in_total += len; return true; } return false;