From f579a3a708c5f544cb93b6d0b5ebdaff135d97c7 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 3 Jul 2022 11:11:50 +0200 Subject: [PATCH] REVIEWED: `DecompressData()` --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index c524d11c5..55e820b63 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -3290,7 +3290,7 @@ unsigned char *DecompressData(const unsigned char *compData, int compDataSize, i #if defined(SUPPORT_COMPRESSION_API) // Decompress data from a valid DEFLATE stream data = RL_CALLOC(MAX_DECOMPRESSION_SIZE*1024*1024, 1); - int length = sinflate(data, MAX_DECOMPRESSION_SIZE, compData, compDataSize); + int length = sinflate(data, MAX_DECOMPRESSION_SIZE*1024*1024, compData, compDataSize); unsigned char *temp = RL_REALLOC(data, length); if (temp != NULL) data = temp;