diff options
| author | raysan5 <[email protected]> | 2021-10-06 21:13:17 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-06 21:13:17 +0200 |
| commit | 700d448d75debea32572dc87cf3add0f755fed43 (patch) | |
| tree | b26ac6b65012a9dad59bb35d483d2dce8027565b /src/rcore.c | |
| parent | 8722ff7043a1c6844d59a9448e48aa5345c27058 (diff) | |
| download | raylib-700d448d75debea32572dc87cf3add0f755fed43.tar.gz raylib-700d448d75debea32572dc87cf3add0f755fed43.zip | |
Updated external libraries
Diffstat (limited to 'src/rcore.c')
| -rw-r--r-- | src/rcore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c index 3824d3e7..5e5d99a3 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -148,6 +148,7 @@ #if defined(SUPPORT_COMPRESSION_API) #define SINFL_IMPLEMENTATION + #define SINFL_NO_SIMD #include "external/sinfl.h" // Deflate (RFC 1951) decompressor #define SDEFL_IMPLEMENTATION @@ -3004,7 +3005,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, 1); - int length = sinflate(data, compData, compDataLength); + int length = sinflate(data, MAX_DECOMPRESSION_SIZE, compData, compDataLength); unsigned char *temp = RL_REALLOC(data, length); if (temp != NULL) data = temp; |
