summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_ptr_indirection.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-04-28 00:17:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-04-28 00:17:07 +0200
commit41dc1764f342691916b7015fb40036b883d7bcc5 (patch)
tree12372055f4a68bc480fff5b39615c66174570569 /src/lib/eo/eo_ptr_indirection.c
parentb9ad2190ab6cebd7e1e57ba81ed7246f24b57980 (diff)
eo_ptr_ind: fix hdr->size in _eo_id_mem_alloc
Diffstat (limited to 'src/lib/eo/eo_ptr_indirection.c')
-rw-r--r--src/lib/eo/eo_ptr_indirection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo_ptr_indirection.c b/src/lib/eo/eo_ptr_indirection.c
index 7e3ca65..ce2fc6e 100644
--- a/src/lib/eo/eo_ptr_indirection.c
+++ b/src/lib/eo/eo_ptr_indirection.c
@@ -107,7 +107,7 @@ _eo_id_mem_alloc(size_t size)
107 return NULL; 107 return NULL;
108 } 108 }
109 hdr = ptr; 109 hdr = ptr;
110 hdr->size = size; 110 hdr->size = newsize;
111 hdr->magic = MEM_MAGIC; 111 hdr->magic = MEM_MAGIC;
112 return (void *)(((unsigned char *)ptr) + MEM_HEADER_SIZE); 112 return (void *)(((unsigned char *)ptr) + MEM_HEADER_SIZE);
113#else 113#else