diff options
| author | Ray <[email protected]> | 2021-01-14 20:42:01 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-01-14 20:42:01 +0100 |
| commit | 186e52c4d8665cd4edefc74d85c11a993ada05e7 (patch) | |
| tree | 1f17201f38632b1b48c9b9c957c9d043dae2c53a /src/core.c | |
| parent | a3c56d9052a008c843b4021f9b641cdec0e235e3 (diff) | |
| download | raylib-186e52c4d8665cd4edefc74d85c11a993ada05e7.tar.gz raylib-186e52c4d8665cd4edefc74d85c11a993ada05e7.zip | |
REVIEWED: DecompressData()
Corrected bug!
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
