summaryrefslogtreecommitdiff
path: root/src/common/malloc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-12-18 10:14:37 -0200
committershennetsind <ind@henn.et>2013-12-18 10:14:37 -0200
commitfbf96e6eaed6220fd7aba0594a32396bab1da70b (patch)
tree9ab3151a456dd33996917e886c5c9b37147080e9 /src/common/malloc.c
parent44fff6ee20845a9c36ae01e534a45a737b334717 (diff)
downloadhercules-fbf96e6eaed6220fd7aba0594a32396bab1da70b.tar.gz
hercules-fbf96e6eaed6220fd7aba0594a32396bab1da70b.tar.bz2
hercules-fbf96e6eaed6220fd7aba0594a32396bab1da70b.tar.xz
hercules-fbf96e6eaed6220fd7aba0594a32396bab1da70b.zip
Fixed Bug 7906
http://hercules.ws/board/tracker/issue-7906-compiling-error-latest/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/malloc.c')
-rw-r--r--src/common/malloc.c2
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;