Skip to content

Commit

Permalink
Fixed Bug 7906
Browse files Browse the repository at this point in the history
  • Loading branch information
shennetsind committed Dec 18, 2013
1 parent 44fff6e commit fbf96e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fbf96e6

Please sign in to comment.