From 186e52c4d8665cd4edefc74d85c11a993ada05e7 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 14 Jan 2021 20:42:01 +0100 Subject: [PATCH] REVIEWED: DecompressData() Corrected bug! --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index ec962d8b8..15aab363a 100644 --- a/src/core.c +++ b/src/core.c @@ -2585,7 +2585,7 @@ unsigned char *DecompressData(unsigned char *compData, int compDataLength, int * #if defined(SUPPORT_COMPRESSION_API) // Decompress data from a valid DEFLATE stream - data = RL_CALLOC(MAX_DECOMPRESSION_SIZE*1024*1024, 0); + data = RL_CALLOC(MAX_DECOMPRESSION_SIZE*1024*1024, 1); int length = sinflate(data, compData, compDataLength); RL_REALLOC(data, length); *dataLength = length;