aboutsummaryrefslogtreecommitdiffstats
path: root/src/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heap.c')
-rw-r--r--src/heap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/heap.c b/src/heap.c
index 1eba901..18cb8e6 100644
--- a/src/heap.c
+++ b/src/heap.c
@@ -30,9 +30,12 @@ void *hmalloc(uint32_t size)
void *hcalloc(uint32_t count, uint32_t size)
{
- uint32_t total = count * size;
+ /*uint32_t total = count * size;
void *alloc = hmalloc(total);
for (uint32_t i = 0; i < total; i++)
((uint8_t *)alloc)[i] = 0;
- return alloc;
+ return alloc;*/
+
+ // calloc broke
+ return hmalloc(count * size);
}