jeyzu pushed a commit to branch master.
commit 41dc1764f342691916b7015fb40036b883d7bcc5
Author: Jérémy Zurcher <[email protected]>
Date: Sun Apr 28 00:17:07 2013 +0200
eo_ptr_ind: fix hdr->size in _eo_id_mem_alloc
---
src/lib/eo/eo_ptr_indirection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
return NULL;
}
hdr = ptr;
- hdr->size = size;
+ hdr->size = newsize;
hdr->magic = MEM_MAGIC;
return (void *)(((unsigned char *)ptr) + MEM_HEADER_SIZE);
#else
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr