eo_ptr_ind: fix hdr->size in _eo_id_mem_alloc

This commit is contained in:
Jérémy Zurcher 2013-04-28 00:17:07 +02:00
parent b9ad2190ab
commit 41dc1764f3
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ _eo_id_mem_alloc(size_t size)
return NULL;
}
hdr = ptr;
hdr->size = size;
hdr->size = newsize;
hdr->magic = MEM_MAGIC;
return (void *)(((unsigned char *)ptr) + MEM_HEADER_SIZE);
#else