diff options
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -193,10 +193,10 @@ * Below functions must exist somewhere in the Project * and be available at link time */ void* LZ4_malloc(size_t s); -void* LZ4_calloc(size_t s); +void* LZ4_calloc(size_t n, size_t s); void LZ4_free(void* p); # define ALLOC(s) LZ4_malloc(s) -# define ALLOC_AND_ZERO(s) LZ4_calloc(s) +# define ALLOC_AND_ZERO(s) LZ4_calloc(1,s) # define FREEMEM(p) LZ4_free(p) #else # include <stdlib.h> /* malloc, calloc, free */ |