diff --git a/lib/miniz/miniz.h b/lib/miniz/miniz.h index 8e5ad72..e7d548f 100644 --- a/lib/miniz/miniz.h +++ b/lib/miniz/miniz.h @@ -116,11 +116,11 @@ -/* Defines to completely disable specific portions of miniz.c: +/* Defines to completely disable specific portions of miniz.c: If all macros here are defined the only functionality remaining will be CRC-32, adler-32, tinfl, and tdefl. */ /* Define MINIZ_NO_STDIO to disable all usage and any functions which rely on stdio for file I/O. */ -/*#define MINIZ_NO_STDIO */ +#define MINIZ_NO_STDIO /* If MINIZ_NO_TIME is specified then the ZIP archive functions will not be able to get the current time, or */ /* get/set file times, and the C run-time funcs that get/set times won't be called. */ @@ -139,7 +139,7 @@ /* Define MINIZ_NO_ZLIB_COMPATIBLE_NAME to disable zlib names, to prevent conflicts against stock zlib. */ /*#define MINIZ_NO_ZLIB_COMPATIBLE_NAMES */ -/* Define MINIZ_NO_MALLOC to disable all calls to malloc, free, and realloc. +/* Define MINIZ_NO_MALLOC to disable all calls to malloc, free, and realloc. Note if MINIZ_NO_MALLOC is defined then the user must always provide custom user alloc/free/realloc callbacks to the zlib and archive API's, and a few stand-alone helper API's which don't provide custom user functions (such as tdefl_compress_mem_to_heap() and tinfl_decompress_mem_to_heap()) won't work. */ diff --git a/src/inflate.c b/src/inflate.c index 3c913cd..2abed28 100644 --- a/src/inflate.c +++ b/src/inflate.c @@ -14,10 +14,10 @@ #include "inflate.h" //The compressed and uncompressed buffer arrays -char* comprBuffer; +const char* comprBuffer; char* uncomprBuffer; //Position of the inflater in the buffer arrays -char* comprBufferNext; +const char* comprBufferNext; char* uncomprBufferNext; //Buffer lengths unsigned long uncomprBufferSize;