summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-01-14 20:42:01 +0100
committerRay <[email protected]>2021-01-14 20:42:01 +0100
commit186e52c4d8665cd4edefc74d85c11a993ada05e7 (patch)
tree1f17201f38632b1b48c9b9c957c9d043dae2c53a /src/core.c
parenta3c56d9052a008c843b4021f9b641cdec0e235e3 (diff)
downloadraylib-186e52c4d8665cd4edefc74d85c11a993ada05e7.tar.gz
raylib-186e52c4d8665cd4edefc74d85c11a993ada05e7.zip
REVIEWED: DecompressData()
Corrected bug!
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index ec962d8b..15aab363 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;