]> jfr.im git - irc/atheme/libmowgli-2.git/commitdiff
core/heap: Fix compile error if HEAP_DEBUG is defined
authorAttila Molnar <redacted>
Mon, 28 Apr 2014 15:42:11 +0000 (17:42 +0200)
committerAttila Molnar <redacted>
Mon, 28 Apr 2014 15:42:11 +0000 (17:42 +0200)
src/libmowgli/core/heap.c

index be47802a7a60bf8b3d0cb7470b51a139c25771be..b4fd9d95c006eeb34eb3e34e8bd018c248a88c00 100644 (file)
@@ -314,7 +314,7 @@ mowgli_heap_alloc(mowgli_heap_t *heap)
 #ifdef HEAP_DEBUG
 
        /* debug */
-       mowgli_log("mowgli_heap_alloc(heap = @%p) -> %p", heap, fn->data);
+       mowgli_log("mowgli_heap_alloc(heap = @%p) -> %p", heap, (char*) h + sizeof(mowgli_heap_elem_header_t));
 #endif
 
        mowgli_mutex_unlock(&heap->mutex);