diff options
Diffstat (limited to 'src/common/malloc.c')
-rw-r--r-- | src/common/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/malloc.c b/src/common/malloc.c index 875b87a15..f7f108304 100644 --- a/src/common/malloc.c +++ b/src/common/malloc.c @@ -392,7 +392,7 @@ void* _mreallocz(void *memblock, size_t size, const char *file, int line, const p = iMalloc->malloc(size,file,line,func); if(p != NULL) { memcpy(p,memblock,old_size); - memset(p+old_size,0,size-old_size); + memset((char*)p+old_size,0,size-old_size); } iMalloc->free(memblock,file,line,func); return p; |