- fixed bug of generator

This commit is contained in:
Jan Hutter
2005-11-16 15:29:31 +00:00
parent d5fc0f731d
commit de257bc0be
5 changed files with 28 additions and 10 deletions
+7 -3
View File
@@ -328,15 +328,19 @@ chunk_t allocator_alloc_as_chunk(size_t bytes)
void * allocator_realloc(void * old, size_t newsize)
{
return realloc(old,newsize);
void *data = realloc(old,newsize);
return data;
}
void * allocator_clone_bytes(void * pointer, size_t size)
{
void *data;
data = malloc(size);
if (data == NULL){ return NULL;}
memcpy(data,pointer,size);
if (data == NULL){return NULL;}
memmove(data,pointer,size);
return (data);
}