aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mem.c b/src/lib/mem.c
index fcaea4b..ac5db4d 100644
--- a/src/lib/mem.c
+++ b/src/lib/mem.c
@@ -188,7 +188,7 @@ void heap_info_u(void)
while ((void*)base < rpi_heap_top) {
unsigned char size = base[MEM_SIZE_OFFSET];
if(base[MEM_USE_OFFSET] == 0) {
- base += MEM_META_SIZE;
+ base += size + MEM_META_SIZE;
continue;
}
uart_hex((unsigned long)(base + MEM_BASE_SIZE));