From 0335b8141b4ab35a94a8f1653a86defcd6768012 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 7 May 2010 15:18:13 -0600 Subject: Fix argument to malloc(). --- libdimension/prtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdimension/prtree.c b/libdimension/prtree.c index f5ce68f..cb09b84 100644 --- a/libdimension/prtree.c +++ b/libdimension/prtree.c @@ -482,7 +482,7 @@ dmnsn_new_prtree(const dmnsn_array *objects) dmnsn_delete_pseudo_prtree(pseudo); } - dmnsn_prtree *prtree = dmnsn_malloc(sizeof(dmnsn_prtree *)); + dmnsn_prtree *prtree = dmnsn_malloc(sizeof(dmnsn_prtree)); dmnsn_list_get(dmnsn_list_first(leaves), &prtree->root); prtree->unbounded = dmnsn_array_from_list(unbounded); -- cgit v1.2.3