diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-13 12:12:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 12:12:46 +0200 |
commit | dd274139073da7119dfe8801c8dd29275c5fd830 (patch) | |
tree | f95e7ee09406ed067f4c797a751c39f088e84dd3 /core | |
parent | c7d13f009d4524ac900d11343a622407e70501ba (diff) | |
parent | ccf292df3856f178efc5b9ef84fbea4bf15187fa (diff) |
Merge pull request #50412 from timothyqiu/fastlz-decompress
Diffstat (limited to 'core')
-rw-r--r-- | core/io/compression.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/compression.cpp b/core/io/compression.cpp index ca56509253..790b6febc0 100644 --- a/core/io/compression.cpp +++ b/core/io/compression.cpp @@ -134,8 +134,9 @@ int Compression::decompress(uint8_t *p_dst, int p_dst_max_size, const uint8_t *p if (p_dst_max_size < 16) { uint8_t dst[16]; - ret_size = fastlz_decompress(p_src, p_src_size, dst, 16); + fastlz_decompress(p_src, p_src_size, dst, 16); memcpy(p_dst, dst, p_dst_max_size); + ret_size = p_dst_max_size; } else { ret_size = fastlz_decompress(p_src, p_src_size, p_dst, p_dst_max_size); } |