mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-07 11:58:13 +00:00
REVIEWED: DecompressData()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user