From bd8a5ece586535f59c6da33cadb2bb01bebf1cac Mon Sep 17 00:00:00 2001 From: CTCaer Date: Mon, 9 Dec 2019 19:30:45 +0200 Subject: [PATCH] heap: Fix type for heap monitor memset size --- bootloader/mem/heap.c | 2 +- nyx/nyx_gui/mem/heap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootloader/mem/heap.c b/bootloader/mem/heap.c index efad06d..1e3493a 100644 --- a/bootloader/mem/heap.c +++ b/bootloader/mem/heap.c @@ -137,7 +137,7 @@ void free(void *buf) void heap_monitor(heap_monitor_t *mon, bool print_node_stats) { u32 count = 0; - memset(mon, 0, sizeof(heap_monitor)); + memset(mon, 0, sizeof(heap_monitor_t)); hnode_t *node = _heap.first; while (true) diff --git a/nyx/nyx_gui/mem/heap.c b/nyx/nyx_gui/mem/heap.c index f4892eb..7d081e8 100644 --- a/nyx/nyx_gui/mem/heap.c +++ b/nyx/nyx_gui/mem/heap.c @@ -137,7 +137,7 @@ void free(void *buf) void heap_monitor(heap_monitor_t *mon, bool print_node_stats) { u32 count = 0; - memset(mon, 0, sizeof(heap_monitor)); + memset(mon, 0, sizeof(heap_monitor_t)); hnode_t *node = _heap.first; while (true)